Converter.LongToBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
LongToBits(long, byte[], int) | Converts |
LongToBits(long, ulong[], int) | Converts |
LongToBits(long, byte[], int)
Converts value
to 64 bits and writes them into array
at startBit
.
public static void LongToBits(long value, byte[] array, int startBit)
Parameters
long | value |
The long to convert. |
byte[] | array |
The array to write the bits into. |
int | startBit |
The position in the array at which to write the bits. |
LongToBits(long, ulong[], int)
Converts value
to 64 bits and writes them into array
at startBit
.
public static void LongToBits(long value, ulong[] array, int startBit)
Parameters
long | value |
The long to convert. |
ulong[] | array |
The array to write the bits into. |
int | startBit |
The position in the array at which to write the bits. |