C# Class Glare.Framework.BigEndianBinaryReader

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

Public Methods

Method 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 method

Initialise the reader.
public BigEndianBinaryReader ( Stream input ) : System
input Stream
return System

BigEndianBinaryReader() public method

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

Create() public static method

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

ReadChar() public method

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

ReadChars() public method

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

ReadDecimal() public method

Read a decimal value.
public ReadDecimal ( ) : decimal
return decimal

ReadDouble() public method

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

ReadInt16() public method

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

ReadInt32() public method

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

ReadInt64() public method

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

ReadSingle() public method

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

ReadString() public method

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
return string

ReadUInt16() public method

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

ReadUInt32() public method

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

ReadUInt64() public method

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