CryptoStream: ReadByte

ReadByte

Reads a byte from the 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 a Long, or -1 if at the end of the stream.

Remarks

Use the CanRead property to determine whether the current instance supports reading.

Exceptions

Exception Condition
NotSupportedExceptionThe stream does not support reading.
ObjectDisposedExceptionMethods were called after the stream was closed.

See Also

Project CorLib Overview

Class CryptoStream Overview