MemoryMappedViewStream: ReadByte

ReadByte

Reads a byte from a stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.



 Public Function ReadByte ( ) As Long

Return Values

Long -  The unsigned byte cast to an Int32 object, or -1 if at the end of the stream.

Remarks

Use this method to return integer values from the stream.

Exceptions

Exception Condition
ObjectDisposedExceptionThe stream is closed.
NotSupportedExceptionThe underlying memory does not support reading.

See Also

Project CorLib Overview

Class MemoryMappedViewStream Overview