public uint ReadUInt16()
        {
            var bytes = new byte[2];

            bytes[0] = ReadByte();
            bytes[1] = ReadByte();

            return(BinaryHelper.ByteToUInt16(bytes));
        }
Beispiel #2
0
 public static ushort PeekUint16(this Stream stream, bool bigEndian = false)
 {
     return(BinaryHelper.ByteToUInt16(PeekBytes(stream, 2), bigEndian));
 }