Пример #1
0
 public int PeekInt(uint offset, out int value, Endian endian)
 {
     if (CheckAvailable(offset + 4))
     {
         value = ByteConverter.BytesToInt32(buffer, readPosition + offset, endian);
         return(value);
     }
     throw eobException;
 }
Пример #2
0
 public int TakeInt(out int value, Endian endian)
 {
     if (CheckAvailable(4))
     {
         value         = ByteConverter.BytesToInt32(buffer, readPosition, endian);
         readPosition += 4;
         return(value);
     }
     throw eobException;
 }