C# Класс AsmResolver.BinaryStreamReaderExtensions

Показать файл Открыть проект

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

Метод Описание
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