MemoryStream: ReadByte

ReadByte

Reads a single byte from the stream.



 Public Function ReadByte ( ) As Long

Return Values

Long -  The byte cast to a Long, or -1 if the end of the stream has been reached.

Remarks

If the read operation is successful, the current position within the stream is advanced by one byte. If an exception occurs, the current position within the stream is unchanged.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe current stream instance is closed.

See Also

Project CorLib Overview

Class MemoryStream Overview