Class BitCounter
Utility class to count the number of bytes or bits needed to serialize a value.
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public static class BitCounter
Methods
Name | Description |
---|---|
GetUsedBitCount(uint) | Get the minimum number of bits required to represent the given value |
GetUsedBitCount(ulong) | Get the minimum number of bits required to represent the given value |
GetUsedByteCount(uint) | Get the minimum number of bytes required to represent the given value |
GetUsedByteCount(ulong) | Get the minimum number of bytes required to represent the given value |