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