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