ReadUnalignedI4() static private method

static private ReadUnalignedI4 ( int p ) : int
p int
return int
示例#1
0
 private unsafe int GetNameHash(int index)
 {
     if (this._ums == null)
     {
         return(this._nameHashes[index]);
     }
     return(ResourceReader.ReadUnalignedI4(this._nameHashesPtr + index));
 }
示例#2
0
        private unsafe int GetNamePosition(int index)
        {
            int num = this._ums != null?ResourceReader.ReadUnalignedI4(this._namePositionsPtr + index) : this._namePositions[index];

            if (num < 0 || (long)num > this._dataSectionOffset - this._nameSectionOffset)
            {
                throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", (object)num));
            }
            return(num);
        }