BinaryReader.FillBuffer Method (Int32)

 

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

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

abstract FillBuffer : 
        numBytes:int -> unit
override FillBuffer : 
        numBytes:int -> unit

Parameters

numBytes
Type: System.Int32

The number of bytes to be read.

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.

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: