C# Class Glare.Framework.BigEndianBinaryReader

A BinaryReader that reads in big-endian order.
Inheritance: System.IO.BinaryReader
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

Méthode Description
BigEndianBinaryReader ( Stream input ) : System

Initialise the reader.

BigEndianBinaryReader ( Stream input, Encoding encoding ) : System

Initialise the reader.

Create ( ByteOrder byteOrder, Stream input ) : BinaryReader

Create a BinaryReader or a BigEndianBinaryReader based upon a ByteOrder.

ReadChar ( ) : char

Read a single character in the encoding specified when creating the reader.

ReadChars ( int count ) : char[]

Read a set of characters.

ReadDecimal ( ) : decimal

Read a decimal value.

ReadDouble ( ) : double

Read a Double value in big-endian order.

ReadInt16 ( ) : short

Read a Int16 value in big-endian order.

ReadInt32 ( ) : int

Read a Int32 value in big-endian order.

ReadInt64 ( ) : long

Read a Int64 value in big-endian order.

ReadSingle ( ) : float

Read a Single value in big-endian order.

ReadString ( ) : string

Read a string that's stored as a 7-bit coded length followed by string data in the encoding specified when creating the reader.

ReadUInt16 ( ) : ushort

Read a UInt16 value in big-endian order.

ReadUInt32 ( ) : uint

Read a UInt32 value in big-endian order.

ReadUInt64 ( ) : ulong

Read a UInt64 value in big-endian order.

Method Details

BigEndianBinaryReader() public méthode

Initialise the reader.
public BigEndianBinaryReader ( Stream input ) : System
input Stream
Résultat System

BigEndianBinaryReader() public méthode

Initialise the reader.
public BigEndianBinaryReader ( Stream input, Encoding encoding ) : System
input Stream
encoding System.Text.Encoding
Résultat System

Create() public static méthode

Create a BinaryReader or a BigEndianBinaryReader based upon a ByteOrder.
public static Create ( ByteOrder byteOrder, Stream input ) : BinaryReader
byteOrder ByteOrder
input Stream
Résultat System.IO.BinaryReader

ReadChar() public méthode

Read a single character in the encoding specified when creating the reader.
public ReadChar ( ) : char
Résultat char

ReadChars() public méthode

Read a set of characters.
public ReadChars ( int count ) : char[]
count int
Résultat char[]

ReadDecimal() public méthode

Read a decimal value.
public ReadDecimal ( ) : decimal
Résultat decimal

ReadDouble() public méthode

Read a Double value in big-endian order.
public ReadDouble ( ) : double
Résultat double

ReadInt16() public méthode

Read a Int16 value in big-endian order.
public ReadInt16 ( ) : short
Résultat short

ReadInt32() public méthode

Read a Int32 value in big-endian order.
public ReadInt32 ( ) : int
Résultat int

ReadInt64() public méthode

Read a Int64 value in big-endian order.
public ReadInt64 ( ) : long
Résultat long

ReadSingle() public méthode

Read a Single value in big-endian order.
public ReadSingle ( ) : float
Résultat float

ReadString() public méthode

Read a string that's stored as a 7-bit coded length followed by string data in the encoding specified when creating the reader.
public ReadString ( ) : string
Résultat string

ReadUInt16() public méthode

Read a UInt16 value in big-endian order.
public ReadUInt16 ( ) : ushort
Résultat ushort

ReadUInt32() public méthode

Read a UInt32 value in big-endian order.
public ReadUInt32 ( ) : uint
Résultat uint

ReadUInt64() public méthode

Read a UInt64 value in big-endian order.
public ReadUInt64 ( ) : ulong
Résultat ulong