Click or drag to resize
UnpackingUnpackObject Method (Byte)
Unpacks the MessagePackObject which represents the value which has MessagePack type semantics. from the head of specified byte array.

Namespace: MsgPack
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public static UnpackingResult<MessagePackObject> UnpackObject(
	byte[] source
)

Parameters

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

Return Value

Type: UnpackingResultMessagePackObject
The UnpackingResultT of MessagePackObject which contains unpacked the MessagePackObject which represents the value which has MessagePack type semantics. 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 MessagePackObject.
Remarks

Invocation of this method is equivalant to call UnpackObject(Byte, Int32) with offset is 0.

When the type of packed value is not known, use UnpackObject(Byte) instead.

See Also