Converter.SByteFromBits Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
| SByteFromBits(byte[], int) | Converts the 8 bits at |
| SByteFromBits(ulong[], int) | Converts the 8 bits at |
SByteFromBits(byte[], int)
Converts the 8 bits at startBit in array to an sbyte.
public static sbyte SByteFromBits(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
| sbyte | The converted sbyte. |
SByteFromBits(ulong[], int)
Converts the 8 bits at startBit in array to an sbyte.
public static sbyte SByteFromBits(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
| sbyte | The converted sbyte. |