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