Exemplo n.º 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;
 }
Exemplo n.º 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;
 }