Reads a two-byte unsigned integer from the current stream and advances the position of the stream by two bytes. This uses little endian encoding.
[Visual Basic] Overridable Public Function ReadUInt16() As UInt16 [C#] public virtual ushort ReadUInt16(); [C++] public: virtual unsigned short ReadUInt16(); [JScript] public function ReadUInt16() : UInt16;
A two-byte unsigned integer read from this stream.
Exception Type | Condition |
---|---|
EndOfStreamException | The end of the stream has been reached. |
IOException | An I/O error occurs. |
BinaryReader Class | BinaryReader Members | System.IO Namespace