UInt16Extensions.ToBytes Method
Definition
Decomposes a UInt16 into its most and least significant bytes.
public static ValueTuple<Byte, Byte> ToBytes(this ushort value);
Parameters
| Name | Type | Description |
|---|---|---|
| value | UInt16 |
Returns
A tuple of the most significant byte and least significant byte.