System.IO.UnmanagedMemoryStream.ReadByte Method

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.

Syntax

public override int ReadByte ()

Returns

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

Remarks

Use this method to return integer values from the stream.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0