C# Class Gammtek.Conduit.IO.EndianMarker

Support for identifying the Endian of data based on the marker.
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Méthode Description
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.

Method Details

ProcessEndianMarker() public static méthode

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
Résultat System.IO.BinaryReader

WriteEndianMarker() public static méthode

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
Résultat System.IO.BinaryWriter