EndianExtensions.ToUInt16 Method
Definition
Composes a UInt16 (UInt16) from two bytes.
public static ushort ToUInt16(this Endian endian, Byte byte0, Byte byte1);
Parameters
| Name | Type | Description |
|---|---|---|
| endian | Endian | |
| byte0 | Byte | The first byte. |
| byte1 | Byte | The second byte. |
Returns
The composed UInt16.