System.IO.BinaryReader.FillBuffer Method

Fills the internal buffer with the specified number of bytes read from the stream.

Syntax

protected virtual void FillBuffer (int numBytes)

Parameters

numBytes
The number of bytes to be read.

Remarks

The internal buffer size is the larger value between 16 and the value returned by System.Text.Encoding.GetMaxByteCount(int) for the specified encoding.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0