Class ByteUnpacker
Byte Unpacking Helper Class
Use this class to unpack values during deserialization for values that were packed.
Byte
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public static class ByteUnpacker
Methods
Name | Description |
---|---|
Read |
Read a bit-packed 14-bit signed short from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a bit-packed 29-bit signed int from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a bit-packed 60-bit signed long from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a bit-packed 15-bit unsigned short from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a bit-packed 30-bit unsigned int from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a bit-packed 61-bit signed long from the stream. See BytePacker.cs for a description of the format. |
Read |
Read a boolean from the stream. |
Read |
Read a byte from the stream. |
Read |
Read a two-byte character as a varint from the stream. |
Read |
Read double-precision floating point value from the stream as a varint |
Read |
Read an usigned short (Int16) as a varint from the stream. |
Read |
Read a signed int (Int32) as a ZigZag encoded varint from the stream. |
Read |
Read a signed long (Int64) as a ZigZag encoded varint from the stream. |
Read |
Read a signed byte from the stream. |
Read |
Read single-precision floating point value from the stream as a varint |
Read |
Reads a string in a packed format |
Read |
Read an unsigned short (UInt16) as a varint from the stream. |
Read |
Read an unsigned int (UInt32) from the stream. |
Read |
Read an unsigned long (UInt64) from the stream. |
Read |
Convenience method that reads four varint floats from the color from the stream |
Read |
Convenience method that reads four varint floats from the color from the stream |
Read |
Reads the rotation from the stream. |
Read |
Convenience method that reads two packed Vector2 from the ray from the stream |
Read |
Convenience method that reads two packed Vector3 from the ray from the stream |
Read |
Convenience method that reads two varint floats from the vector from the stream |
Read |
Convenience method that reads three varint floats from the vector from the stream |
Read |
Convenience method that reads four varint floats from the vector from the stream |
Read |
Read a packed enum value |