BinaryReaderReadUInt16 Method |
Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual ushort ReadUInt16()
Return Value
Type:
UInt16A 2-byte unsigned integer read from this stream.
Exceptions Exception | Condition |
---|
EndOfStreamException | The end of the stream is reached. |
ObjectDisposedException | The stream is closed. |
IOException | An I/O error occurs. |
See Also