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; }
public int TakeInt(out int value, Endian endian) { if (CheckAvailable(4)) { value = ByteConverter.BytesToInt32(buffer, readPosition, endian); readPosition += 4; return(value); } throw eobException; }