.NET Framework Class Library
BinaryReader Members

Reads primitive data types as binary values in a specific encoding.

The BinaryReader type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBinaryReaderOverloaded. Initializes a new instance of the BinaryReader class.
Top
Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCloseCloses the current reader and the underlying stream.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDisposeReleases the unmanaged resources used by the BinaryReader and optionally releases the managed resources.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFillBufferFills the internal buffer with the specified number of bytes read from the stream.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkPeekCharReturns the next available character and does not advance the byte or character position.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadOverloaded. Reads characters from the underlying stream and advances the current position of the stream.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRead7BitEncodedIntReads in a 32-bit integer in compressed format.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadBooleanReads a Boolean value from the current stream and advances the current position of the stream by one byte.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadByteReads the next byte from the current stream and advances the current position of the stream by one byte.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadBytesReads count bytes from the current stream into a byte array and advances the current position by count bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadCharReads 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 methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadCharsReads 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 methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadDecimalReads a decimal value from the current stream and advances the current position of the stream by sixteen bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadDoubleReads an 8-byte floating point value from the current stream and advances the current position of the stream by eight bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadInt16Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadInt32Reads a 4-byte signed integer from the current stream and advances the current position of the stream by four bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadInt64Reads an 8-byte signed integer from the current stream and advances the current position of the stream by eight bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadSByteReads a signed byte from this stream and advances the current position of the stream by one byte.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadSingleReads a 4-byte floating point value from the current stream and advances the current position of the stream by four bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadStringReads a string from the current stream. The string is prefixed with the length, encoded as an integer seven bits at a time.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadUInt16Reads a 2-byte unsigned integer from the current stream using little-endian encoding and advances the position of the stream by two bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadUInt32Reads a 4-byte unsigned integer from the current stream and advances the position of the stream by four bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadUInt64Reads an 8-byte unsigned integer from the current stream and advances the position of the stream by eight bytes.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkBaseStreamExposes access to the underlying stream of the BinaryReader.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIDisposable..::.DisposeInfrastructure. Releases all resources used by the BinaryWriter.
Top
See Also

Reference

Tags :


Page view tracker