C# Class AsmResolver.OutputStreamExtensions

Provides extensions for the IBinaryStreamWriter interface.
Exibir arquivo Open project: JerreS/AsmResolver

Public Methods

Method Description
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.

Method Details

Align() public static method

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.
return void

GetCompressedSize() public static method

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.
return uint

GetSerStringSize() public static method

Determines the size (in bytes) of a string.
public static GetSerStringSize ( this value ) : uint
value this The string to get the size from.
return uint

WriteAsciiString() public static method

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.
return void

WriteBytes() public static method

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.
return void

WriteCompressedUInt32() public static method

Compresses and writes an unsigned integer to the stream.
public static WriteCompressedUInt32 ( this writer, uint value ) : void
writer this
value uint
return void

WriteIndex() public static method

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.
return void

WriteSerString() public static method

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.
return void

WriteZeroes() public static method

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.
return void