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