NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BinaryReader.ReadUInt16

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;

Return Value

A two-byte unsigned integer read from this stream.

Exceptions

Exception Type Condition
EndOfStreamException The end of the stream has been reached.
IOException An I/O error occurs.

See Also

BinaryReader Class | BinaryReader Members | System.IO Namespace