Mercury API
FromU16 Method (bytes, offset, value)
NamespacesThingMagicByteConvFromU16(array<Byte>[]()[], Int32, UInt16)
Insert unsigned 16-bit integer into big-endian byte string
Declaration Syntax
C#Visual BasicVisual C++
public static int FromU16(
	byte[] bytes,
	int offset,
	ushort value
)
Public Shared Function FromU16 ( _
	bytes As Byte(), _
	offset As Integer, _
	value As UShort _
) As Integer
public:
static int FromU16(
	array<unsigned char>^ bytes, 
	int offset, 
	unsigned short value
)
Parameters
bytes (array< Byte >[]()[])
Target big-endian byte string
offset (Int32)
Location to insert into
value (UInt16)
16-bit integer to insert
Return Value
Number of bytes inserted

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