Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BinaryReader Members

BinaryReader overview

Public Constructors

public constructorBinaryReader Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the BinaryReader class.

Public Properties

public propertyBaseStream

Supported by the .NET Compact Framework.

Exposes access to the underlying stream of the BinaryReader.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Closes the current reader and the underlying stream.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodPeekChar

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Overloaded. Reads characters from the underlying stream and advances the current position of the stream.
public methodReadBoolean

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Reads count bytes from the current stream into a byte array and advances the current position by count bytes.
public methodReadChar

Supported by the .NET Compact Framework.

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.
public methodReadChars

Supported by the .NET Compact Framework.

Reads count 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.
public methodReadDecimal Reads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.
public methodReadDouble

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodDispose Releases the unmanaged resources used by the BinaryReader and optionally releases the managed resources.
protected methodFillBuffer

Supported by the .NET Compact Framework.

Fills the internal buffer with the specified number of bytes read from the stream.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodRead7BitEncodedInt

Supported by the .NET Compact Framework.

Reads in a 32-bit integer in a compressed format.

See Also

BinaryReader Class | System.IO Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.