C# Класс Gammtek.Conduit.IO.EndianMarker

Support for identifying the Endian of data based on the marker.
Показать файл Открыть проект

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

Метод Описание
ProcessEndianMarker ( this reader, uint marker ) : BinaryReader

Processes the provided marker in the stream held by reader to determine the Endian setting of the stream. Advances the position in the stream by four bytes and returns a new binary reader to read the stream with the correct Endian setting.

WriteEndianMarker ( this writer, Endian endian, uint marker ) : BinaryWriter

Creates a BinaryWriter to write to the stream managed by writer using the provided Endian setting. marker is written to the stream to mark the Endian setting used.

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

ProcessEndianMarker() публичный статический Метод

Processes the provided marker in the stream held by reader to determine the Endian setting of the stream. Advances the position in the stream by four bytes and returns a new binary reader to read the stream with the correct Endian setting.
public static ProcessEndianMarker ( this reader, uint marker ) : BinaryReader
reader this
marker uint
Результат System.IO.BinaryReader

WriteEndianMarker() публичный статический Метод

Creates a BinaryWriter to write to the stream managed by writer using the provided Endian setting. marker is written to the stream to mark the Endian setting used.
public static WriteEndianMarker ( this writer, Endian endian, uint marker ) : BinaryWriter
writer this
endian Endian
marker uint
Результат System.IO.BinaryWriter