C# Class MapAround.IO.BigEndianBinaryWriter

Extends the BinaryWriter class to allow the writing of integers and double values in the Big Endian format.
Inheritance: System.IO.BinaryWriter
ファイルを表示 Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
BigEndianBinaryWriter ( ) : System

Initializes a new instance of the BigEndianBinaryWriter class.

BigEndianBinaryWriter ( Stream output ) : System

Initializes a new instance of BigEndianBinaryWriter class based on the supplied stream and using UTF-8 as the encoding for strings.

BigEndianBinaryWriter ( Stream output, Encoding encoding ) : System

Initializes a new instance of BigEndianBinaryWriter class based on the supplied stream and a specific character encoding.

WriteDoubleBE ( double value ) : void

Reads a 8-byte signed integer using the big-endian layout from the current stream and advances the current position of the stream by two bytes.

WriteIntBE ( int value ) : void

Reads a 4-byte signed integer using the big-endian layout from the current stream and advances the current position of the stream by two bytes.

Method Details

BigEndianBinaryWriter() public method

Initializes a new instance of the BigEndianBinaryWriter class.
public BigEndianBinaryWriter ( ) : System
return System

BigEndianBinaryWriter() public method

Initializes a new instance of BigEndianBinaryWriter class based on the supplied stream and using UTF-8 as the encoding for strings.
public BigEndianBinaryWriter ( Stream output ) : System
output Stream The supplied stream.
return System

BigEndianBinaryWriter() public method

Initializes a new instance of BigEndianBinaryWriter class based on the supplied stream and a specific character encoding.
public BigEndianBinaryWriter ( Stream output, Encoding encoding ) : System
output Stream The supplied stream.
encoding System.Text.Encoding The character encoding.
return System

WriteDoubleBE() public method

Reads a 8-byte signed integer using the big-endian layout from the current stream and advances the current position of the stream by two bytes.
public WriteDoubleBE ( double value ) : void
value double The four-byte signed integer to write.
return void

WriteIntBE() public method

Reads a 4-byte signed integer using the big-endian layout from the current stream and advances the current position of the stream by two bytes.
public WriteIntBE ( int value ) : void
value int The four-byte signed integer to write.
return void