Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BinaryReader.FillBuffer Method

July 28, 2014

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

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

protected virtual void FillBuffer(
	int numBytes
)

Parameters

numBytes
Type: System.Int32
The number of bytes to be read.

ExceptionCondition
EndOfStreamException

The end of the stream is reached before numBytes could be read.

IOException

An I/O error occurs.

ArgumentOutOfRangeException

Requested numBytes is larger than the internal buffer size.

The internal buffer size is the larger value between 16 and the value returned by GetMaxByteCount for the specified encoding.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft