C# Class AsmResolver.OutputStreamExtensions

Provides extensions for the IBinaryStreamWriter interface.
Afficher le fichier Open project: JerreS/AsmResolver

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

GetCompressedSize() public static méthode

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.
Résultat uint

GetSerStringSize() public static méthode

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

WriteAsciiString() public static méthode

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.
Résultat void

WriteBytes() public static méthode

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.
Résultat void

WriteCompressedUInt32() public static méthode

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

WriteIndex() public static méthode

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.
Résultat void

WriteSerString() public static méthode

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.
Résultat void

WriteZeroes() public static méthode

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.
Résultat void