C# Class Gammtek.Conduit.IO.VarInt

Extension methods to write variable length integers to a BinaryWriter.
Datei anzeigen Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
ReadVarInt16 ( this reader ) : short

Reads a variable length representation of an integer from the stream managed by reader.

ReadVarInt32 ( this reader ) : int

Reads a variable length representation of an integer from the stream managed by reader.

ReadVarInt64 ( this reader ) : long

Reads a variable length representation of an integer from the stream managed by reader.

ReadVarUInt16 ( this reader ) : ushort

Reads a variable length representation of an integer from the stream managed by reader.

ReadVarUInt32 ( this reader ) : uint

Reads a variable length representation of an integer from the stream managed by reader.

ReadVarUInt64 ( this reader ) : ulong

Reads a variable length representation of an integer from the stream managed by reader.

WriteVar ( this writer, int value ) : void

Writes a variable length representation of value to the stream managed by writer.

WriteVar ( this writer, long value ) : void

Writes a variable length representation of value to the stream managed by writer.

WriteVar ( this writer, short value ) : void

Writes a variable length representation of value to the stream managed by writer.

WriteVar ( this writer, uint value ) : void

Writes a variable length representation of value to the stream managed by writer.

WriteVar ( this writer, ulong value ) : void

Writes a variable length representation of value to the stream managed by writer.

WriteVar ( this writer, ushort value ) : void

Writes a variable length representation of value to the stream managed by writer.

Method Details

ReadVarInt16() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarInt16 ( this reader ) : short
reader this
return short

ReadVarInt32() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarInt32 ( this reader ) : int
reader this
return int

ReadVarInt64() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarInt64 ( this reader ) : long
reader this
return long

ReadVarUInt16() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarUInt16 ( this reader ) : ushort
reader this
return ushort

ReadVarUInt32() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarUInt32 ( this reader ) : uint
reader this
return uint

ReadVarUInt64() public static method

Reads a variable length representation of an integer from the stream managed by reader.
public static ReadVarUInt64 ( this reader ) : ulong
reader this
return ulong

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, int value ) : void
writer this
value int
return void

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, long value ) : void
writer this
value long
return void

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, short value ) : void
writer this
value short
return void

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, uint value ) : void
writer this
value uint
return void

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, ulong value ) : void
writer this
value ulong
return void

WriteVar() public static method

Writes a variable length representation of value to the stream managed by writer.
public static WriteVar ( this writer, ushort value ) : void
writer this
value ushort
return void