Reads a 2-byte signed integer from the current stream and advances the current position of the stream by 2 bytes.
[Visual Basic] Overridable Public Function ReadInt16() As Short [C#] public virtual short ReadInt16(); [C++] public: virtual short ReadInt16(); [JScript] public function ReadInt16() : Int16;
A 2-byte signed integer read from the current 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