Converter.LongFromBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
LongFromBits(byte[], int) | Converts the 64 bits at |
LongFromBits(ulong[], int) | Converts the 64 bits at |
LongFromBits(byte[], int)
Converts the 64 bits at startBit
in array
to a long.
public static long LongFromBits(byte[] array, int startBit)
Parameters
byte[] | array |
The array to convert the bits from. |
int | startBit |
The position in the array from which to read the bits. |
Returns
long | The converted long. |
LongFromBits(ulong[], int)
Converts the 64 bits at startBit
in array
to a long.
public static long LongFromBits(ulong[] array, int startBit)
Parameters
ulong[] | array |
The array to convert the bits from. |
int | startBit |
The position in the array from which to read the bits. |
Returns
long | The converted long. |