        unsigned int GetUVarBE(int nPos, int nSize, bool *pbSuccess)
        {
            //*pbSuccess = true;

            if ( nPos < 0 || nPos + nSize > m_nLen )
            {
                *pbSuccess = false;
                return 0;
            }
            unsigned int nRes = 0;
            for ( int nIndex = 0; nIndex < nSize; ++nIndex )
                nRes = (nRes << 8) + m_sFile[nPos + nIndex];

            return nRes;
        }