Mercury API
ToU16 Method (bytes, offset)
NamespacesThingMagicByteConvToU16(array<Byte>[]()[], Int32%)
Extract unsigned 16-bit integer from big-endian byte string
Declaration Syntax
C#Visual BasicVisual C++
public static ushort ToU16(
	byte[] bytes,
	ref int offset
)
Public Shared Function ToU16 ( _
	bytes As Byte(), _
	ByRef offset As Integer _
) As UShort
public:
static unsigned short ToU16(
	array<unsigned char>^ bytes, 
	int% offset
)
Parameters
bytes (array< Byte >[]()[])
Source big-endian byte string
offset ( Int32 %)
Location to extract from. Will be updated to post-decode offset.
Return Value
Unsigned 16-bit integer

Assembly: MercuryAPI (Module: MercuryAPI) Version: 1.29.4.34 (1.29.4.34)