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