Skip to main content

Class VarFloatPacker

Packs a float using and

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

Constructors

VarFloatPacker(Single, Int32)

Declaration
public VarFloatPacker(float precision, int blockSize)
Parameters
TypeNameDescription
System.Singleprecision
System.Int32blockSize

Methods

Pack(NetworkWriter, Single)

Declaration
public void Pack(NetworkWriter writer, float value)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
System.Singlevalue

Unpack(NetworkReader)

Declaration
public float Unpack(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
System.Single