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