Skip to main content

Class AnglePacker

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

Constructors

AnglePacker(Single)

Declaration
public AnglePacker(float lowestPrecision)
Parameters
TypeNameDescription
System.SinglelowestPrecisionlowest precision, actual precision will be caculated from number of bits used

Methods

Pack(Single)

Declaration
public uint Pack(float value)
Parameters
TypeNameDescription
System.Singlevalue
Returns
TypeDescription
System.UInt32

Pack(NetworkWriter, Single)

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

Unpack(UInt32)

Declaration
public float Unpack(uint value)
Parameters
TypeNameDescription
System.UInt32value
Returns
TypeDescription
System.Single

Unpack(NetworkReader)

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