Converter.ByteFromBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
| ByteFromBits(byte[], int) | Converts the 8 bits at |
| ByteFromBits(ulong[], int) | Converts the 8 bits at |
ByteFromBits(byte[], int)
Converts the 8 bits at startBit in array to a byte.
public static byte ByteFromBits(byte[] array, int startBit)
Parameters
| byte[] | array |
The array to convert the bits from. |
| int | startBit |
The position in the array from which to read the bits. |
Returns
| byte | The converted byte. |
ByteFromBits(ulong[], int)
Converts the 8 bits at startBit in array to a byte.
public static byte ByteFromBits(ulong[] array, int startBit)
Parameters
| ulong[] | array |
The array to convert the bits from. |
| int | startBit |
The position in the array from which to read the bits. |
Returns
| byte | The converted byte. |