C# Класс AsmResolver.OutputStreamExtensions

Provides extensions for the IBinaryStreamWriter interface.
Показать файл Открыть проект

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

Метод Описание
Align ( this writer, int align ) : void

Aligns the writer to a specified boundary.

GetCompressedSize ( this value ) : uint

Determines the size (in bytes) of an integer when it is compressed.

GetSerStringSize ( this value ) : uint

Determines the size (in bytes) of a string.

WriteAsciiString ( this writer, string value ) : void

Writes an ASCII string to the stream.

WriteBytes ( this writer, byte buffer ) : void

Writes a buffer of data to the stream.

WriteCompressedUInt32 ( this writer, uint value ) : void

Compresses and writes an unsigned integer to the stream.

WriteIndex ( this writer, IndexSize indexSize, uint value ) : void

Writes an index with the specified size to the stream.

WriteSerString ( this writer, string value ) : void

Writes an UTF8 string to the stream.

WriteZeroes ( this writer, int count ) : void

Writes a specified amount of zero bytes to the stream.

Описание методов

Align() публичный статический Метод

Aligns the writer to a specified boundary.
public static Align ( this writer, int align ) : void
writer this The writer to align.
align int The boundary to use.
Результат void

GetCompressedSize() публичный статический Метод

Determines the size (in bytes) of an integer when it is compressed.
public static GetCompressedSize ( this value ) : uint
value this The value to get the size from.
Результат uint

GetSerStringSize() публичный статический Метод

Determines the size (in bytes) of a string.
public static GetSerStringSize ( this value ) : uint
value this The string to get the size from.
Результат uint

WriteAsciiString() публичный статический Метод

Writes an ASCII string to the stream.
public static WriteAsciiString ( this writer, string value ) : void
writer this The writer to use.
value string The string to write.
Результат void

WriteBytes() публичный статический Метод

Writes a buffer of data to the stream.
public static WriteBytes ( this writer, byte buffer ) : void
writer this The writer to use.
buffer byte The data to write.
Результат void

WriteCompressedUInt32() публичный статический Метод

Compresses and writes an unsigned integer to the stream.
public static WriteCompressedUInt32 ( this writer, uint value ) : void
writer this
value uint
Результат void

WriteIndex() публичный статический Метод

Writes an index with the specified size to the stream.
public static WriteIndex ( this writer, IndexSize indexSize, uint value ) : void
writer this The writer to use.
indexSize IndexSize The size of the index.
value uint The value to write.
Результат void

WriteSerString() публичный статический Метод

Writes an UTF8 string to the stream.
public static WriteSerString ( this writer, string value ) : void
writer this The writer to use.
value string The string to write.
Результат void

WriteZeroes() публичный статический Метод

Writes a specified amount of zero bytes to the stream.
public static WriteZeroes ( this writer, int count ) : void
writer this The writer to use.
count int The amount of zeroes to write.
Результат void