BinaryReader.FillBuffer Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

Protected Overridable Sub FillBuffer ( _
    numBytes As Integer _
)
protected virtual void FillBuffer(
    int numBytes
)

Parameters

Exceptions

Exception Condition
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.

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

BinaryReader Class

System.IO Namespace