Skip to main content

Class VarIntPacker

Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class VarIntPacker

Constructors

VarIntPacker(UInt64, UInt64)

Declaration
public VarIntPacker(ulong smallValue, ulong mediumValue)
Parameters
TypeNameDescription
System.UInt64smallValue
System.UInt64mediumValue

VarIntPacker(UInt64, UInt64, UInt64, Boolean)

Declaration
public VarIntPacker(ulong smallValue, ulong mediumValue, ulong largeValue, bool throwIfOverLarge = true)
Parameters
TypeNameDescription
System.UInt64smallValue
System.UInt64mediumValue
System.UInt64largeValue
System.BooleanthrowIfOverLarge

Methods

FromBitCount(Int32, Int32)

Declaration
public static VarIntPacker FromBitCount(int smallBits, int mediumBits)
Parameters
TypeNameDescription
System.Int32smallBits
System.Int32mediumBits
Returns
TypeDescription
Mirage.Serialization.VarIntPacker

FromBitCount(Int32, Int32, Int32, Boolean)

Declaration
public static VarIntPacker FromBitCount(int smallBits, int mediumBits, int largeBits, bool throwIfOverLarge = true)
Parameters
TypeNameDescription
System.Int32smallBits
System.Int32mediumBits
System.Int32largeBits
System.BooleanthrowIfOverLarge
Returns
TypeDescription
Mirage.Serialization.VarIntPacker

PackUlong(NetworkWriter, UInt64)

Declaration
public void PackUlong(NetworkWriter writer, ulong value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
System.UInt64value

PackUint(NetworkWriter, UInt32)

Declaration
public void PackUint(NetworkWriter writer, uint value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
System.UInt32value

PackUshort(NetworkWriter, UInt16)

Declaration
public void PackUshort(NetworkWriter writer, ushort value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
System.UInt16value

UnpackUlong(NetworkReader)

Declaration
public ulong UnpackUlong(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
System.UInt64

UnpackUint(NetworkReader)

Declaration
public uint UnpackUint(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
System.UInt32

UnpackUshort(NetworkReader)

Declaration
public ushort UnpackUshort(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
System.UInt16