C# Класс MapAround.IO.BigEndianBinaryWriter

Extends the BinaryWriter class to allow the writing of integers and double values in the Big Endian format.
Наследование: System.IO.BinaryWriter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

BigEndianBinaryWriter() публичный Метод

Initializes a new instance of the BigEndianBinaryWriter class.
public BigEndianBinaryWriter ( ) : System
Результат System

BigEndianBinaryWriter() публичный Метод

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.
Результат System

BigEndianBinaryWriter() публичный Метод

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.
Результат System

WriteDoubleBE() публичный Метод

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.
Результат void

WriteIntBE() публичный Метод

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.
Результат void