C# Class Gammtek.Conduit.IO.EndianMarker

Support for identifying the Endian of data based on the marker.
Show file Open project: ME3Explorer/ME3Explorer

Public Methods

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

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
return System.IO.BinaryReader

WriteEndianMarker() public static method

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
return System.IO.BinaryWriter