Windows apps
Collapse the table of content
Expand the table of content
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 Methods

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

NameDescription
System_CAPS_pubmethodClose()

Closes the current reader and the underlying stream.

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the BinaryReader class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the BinaryReader class and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFillBuffer(Int32)

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodPeekChar()

Returns the next available character and does not advance the byte or character position.

System_CAPS_pubmethodRead()

Reads characters from the underlying stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.

System_CAPS_pubmethodRead(Byte[], Int32, Int32)

Reads the specified number of bytes from the stream, starting from a specified point in the byte array.

System_CAPS_pubmethodRead(Char[], Int32, Int32)

Reads the specified number of characters from the stream, starting from a specified point in the character array.

System_CAPS_protmethodRead7BitEncodedInt()

Reads in a 32-bit integer in compressed format.

System_CAPS_pubmethodReadBoolean()

Reads a Boolean value from the current stream and advances the current position of the stream by one byte.

System_CAPS_pubmethodReadByte()

Reads the next byte from the current stream and advances the current position of the stream by one byte.

System_CAPS_pubmethodReadBytes(Int32)

Reads the specified number of bytes from the current stream into a byte array and advances the current position by that number of bytes.

System_CAPS_pubmethodReadChar()

Reads the next character from the current stream and advances the current position of the stream in accordance with the Encoding used and the specific character being read from the stream.

System_CAPS_pubmethodReadChars(Int32)

Reads the specified number of characters from the current stream, returns the data in a character array, and advances the current position in accordance with the Encoding used and the specific character being read from the stream.

System_CAPS_pubmethodReadDecimal()

Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.

System_CAPS_pubmethodReadDouble()

Reads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes.

System_CAPS_pubmethodReadInt16()

Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.

System_CAPS_pubmethodReadInt32()

Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.

System_CAPS_pubmethodReadInt64()

Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes.

System_CAPS_pubmethodReadSByte()

Reads a signed byte from this stream and advances the current position of the stream by one byte.

System_CAPS_pubmethodReadSingle()

Reads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.

System_CAPS_pubmethodReadString()

Reads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time.

System_CAPS_pubmethodReadUInt16()

Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes.

System_CAPS_pubmethodReadUInt32()

Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes.

System_CAPS_pubmethodReadUInt64()

Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show:
© 2017 Microsoft