Exemple #1
0
        public uint ReadUInt32()
        {
            uint result = FastBitConverter.ToUInt32(_data, _position);

            _position += 4;
            return(result);
        }
Exemple #2
0
        public bool SetSlotOffset(int vTblOffset, int slotSize, int idx)
        {
            int offset     = (int)(vTblOffset + idx * slotSize);
            int dataOffset = _data[offset];

            if (slotSize == 4)
            {
                dataOffset = (int)FastBitConverter.ToUInt32(_data, offset);
            }
            else if (slotSize == 2)
            {
                dataOffset = FastBitConverter.ToUInt16(_data, offset);
            }
            _position = dataOffset;
            return(dataOffset != 0);
        }
Exemple #3
0
 public uint PeekUInt()
 {
     return(FastBitConverter.ToUInt32(_data, _position));
 }
Exemple #4
0
 public uint ReadSlotInt32(uint offset, int idx)
 {
     return(FastBitConverter.ToUInt32(_data, (int)(offset + idx * 2)));
 }