C# 클래스 Gammtek.Conduit.IO.EndianMarker

Support for identifying the Endian of data based on the marker.
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer

공개 메소드들

메소드 설명
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