Skip to content

EndianExtensions.ToUInt16 Method

Definition

Composes a UInt16 (UInt16) from two bytes.

public static ushort ToUInt16(this Endian endian, Byte byte0, Byte byte1);

View source

Parameters

Name Type Description
endian Endian
byte0 Byte The first byte.
byte1 Byte The second byte.

Returns

UInt16

The composed UInt16.