Click or drag to resize
UnpackingUnpackUInt16 Method (Byte)
Unpacks UInt16 value from the head of specified byte array.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
[CLSCompliantAttribute(false)]
public static UnpackingResult<ushort> UnpackUInt16(
	byte[] source
)

Parameters

source
Type: SystemByte
The byte array which contains Message Pack binary stream.

Return Value

Type: UnpackingResultUInt16
The UnpackingResultT of UInt16 which contains unpacked UInt16 value and processed bytes count.
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null.
ArgumentExceptionsource is empty.
UnpackExceptionsource is not valid MessagePack stream.
MessageTypeException The unpacked result in the source is not compatible to UInt16.
Remarks
See Also