C# 클래스 AsmResolver.BinaryStreamReaderExtensions

파일 보기 프로젝트 열기: JerreS/AsmResolver

공개 메소드들

메소드 설명
Align ( this reader, int align ) : void

Aligns the reader to a specified boundary.

CanRead ( this reader, int size ) : bool

Determines whether the reader can read up to a specific amount of bytes.

CreateSubReader ( this reader, long address ) : IBinaryStreamReader

Forks the reader by creating a new instance of a binary stream reader, using the same data source, but a different address.

ReadAlignedAsciiString ( this reader, int align ) : string

Reads an aligned ASCII string from the stream.

ReadAsciiString ( this reader ) : string

Reads a zero-terminated ASCII string from the stream.

ReadCompressedUInt32 ( this reader ) : uint

Reads a compressed unsigned integer from the stream.

ReadIndex ( this reader, IndexSize size ) : uint

Reads an index with the specified index size of the stream.

ReadSerString ( this reader ) : string

Reads a serialized UTF8 string from the steram.

TryReadCompressedUInt32 ( this reader, uint &value ) : bool

Tries to reads a compressed unsigned integer from the stream.

메소드 상세

Align() 공개 정적인 메소드

Aligns the reader to a specified boundary.
public static Align ( this reader, int align ) : void
reader this The reader to align.
align int The boundary to use.
리턴 void

CanRead() 공개 정적인 메소드

Determines whether the reader can read up to a specific amount of bytes.
public static CanRead ( this reader, int size ) : bool
reader this The reader to check.
size int The size of the data to check.
리턴 bool

CreateSubReader() 공개 정적인 메소드

Forks the reader by creating a new instance of a binary stream reader, using the same data source, but a different address.
public static CreateSubReader ( this reader, long address ) : IBinaryStreamReader
reader this The reader to fork.
address long The address of the forked reader to start at.
리턴 IBinaryStreamReader

ReadAlignedAsciiString() 공개 정적인 메소드

Reads an aligned ASCII string from the stream.
public static ReadAlignedAsciiString ( this reader, int align ) : string
reader this The reader to use for reading the data.
align int The alignment to use.
리턴 string

ReadAsciiString() 공개 정적인 메소드

Reads a zero-terminated ASCII string from the stream.
public static ReadAsciiString ( this reader ) : string
reader this The reader to use for reading the data.
리턴 string

ReadCompressedUInt32() 공개 정적인 메소드

Reads a compressed unsigned integer from the stream.
public static ReadCompressedUInt32 ( this reader ) : uint
reader this The reader to use for reading the data.
리턴 uint

ReadIndex() 공개 정적인 메소드

Reads an index with the specified index size of the stream.
public static ReadIndex ( this reader, IndexSize size ) : uint
reader this The reader to use for reading the data.
size IndexSize The size of the index.
리턴 uint

ReadSerString() 공개 정적인 메소드

Reads a serialized UTF8 string from the steram.
public static ReadSerString ( this reader ) : string
reader this The reader to use for reading the data.
리턴 string

TryReadCompressedUInt32() 공개 정적인 메소드

Tries to reads a compressed unsigned integer from the stream.
public static TryReadCompressedUInt32 ( this reader, uint &value ) : bool
reader this The reader to use for reading the data.
value uint The unsigned integer that was read from the stream.
리턴 bool