Skip to main content
BinaryReader Methods
 

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

NameDescription
System_CAPS_pubmethod Close

Closes the current reader and the underlying stream.

System_CAPS_pubmethod Dispose

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

System_CAPS_protmethod Dispose

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

System_CAPS_pubmethod Equals

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

System_CAPS_protmethod FillBuffer

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

System_CAPS_protmethod Finalize

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_pubmethod GetHashCode

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

System_CAPS_pubmethod GetType

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

System_CAPS_protmethod MemberwiseClone

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

System_CAPS_pubmethod PeekChar

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

System_CAPS_pubmethod Read

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_pubmethod Read

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

System_CAPS_pubmethod Read

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

System_CAPS_protmethod Read7BitEncodedInt

Reads in a 32-bit integer in compressed format.

System_CAPS_pubmethod ReadBoolean

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

System_CAPS_pubmethod ReadByte

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

System_CAPS_pubmethod ReadBytes

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_pubmethod ReadChar

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_pubmethod ReadChars

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_pubmethod ReadDecimal

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

System_CAPS_pubmethod ReadDouble

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

System_CAPS_pubmethod ReadInt16

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

System_CAPS_pubmethod ReadInt32

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

System_CAPS_pubmethod ReadInt64

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

System_CAPS_pubmethod ReadSByte

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

System_CAPS_pubmethod ReadSingle

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

System_CAPS_pubmethod ReadString

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_pubmethod ReadUInt16

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_pubmethod ReadUInt32

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

System_CAPS_pubmethod ReadUInt64

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

System_CAPS_pubmethod ToString

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

Return to top