Converter.ToUShort Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
ToUShort(byte[], int)
Converts the 2 bytes in the array at startIndex
to a ushort.
public static ushort ToUShort(byte[] array, int startIndex)
Parameters
byte[] | array |
The array to read the bytes from. |
int | startIndex |
The position in the array at which to read the bytes. |
Returns
ushort | The converted ushort. |