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