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