Click or drag to resize
MessagePackSerializerTUnpackSingleObject Method
Deserializes a single object from the array of Byte which contains a serialized object.

Namespace: MsgPack.Serialization
Assembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax
public T UnpackSingleObject(
	byte[] buffer
)

Parameters

buffer
Type: SystemByte
An array of Byte serialized value to be stored.

Return Value

Type: T
A bytes of serialized binary.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null.
SerializationException Failed to deserialize object due to invalid unpacker state, stream content, or so.
MessageTypeException Failed to deserialize object due to invalid unpacker state, stream content, or so.
InvalidMessagePackStreamException Failed to deserialize object due to invalid unpacker state, stream content, or so.
Remarks

This method assumes that buffer contains single serialized object dedicatedly, so this method does not return any information related to actual consumed bytes.

This method is a counter part of PackSingleObject(T).

See Also