MsgPack.Serialization.IMessagePackSerializer Interface Reference

Defines non-generic message pack serializer interface. More...

Inherited by MsgPack.Serialization.IMessagePackSingleObjectSerializer.

Public Member Functions

void PackTo (Packer packer, object objectTree)
 Serialize specified object with specified Packer. More...
 
object UnpackFrom (Unpacker unpacker)
 Deserialize object with specified Unpacker. More...
 
void UnpackTo (Unpacker unpacker, object collection)
 Deserialize collection items with specified Unpacker and stores them to collection . More...
 

Detailed Description

Defines non-generic message pack serializer interface.

Member Function Documentation

◆ PackTo()

void MsgPack.Serialization.IMessagePackSerializer.PackTo ( Packer  packer,
object  objectTree 
)

Serialize specified object with specified Packer.

Parameters
packerPacker which packs values in objectTree .
objectTreeObject to be serialized.
Exceptions
ArgumentNullExceptionpacker is null.
ArgumentExceptionobjectTree is not compatible for this serializer.
System.Runtime.Serialization.SerializationExceptionFailed to serialize object.
NotSupportedExceptionThe type of objectTree is not serializable even if it can be deserialized.
See also
MessagePackSerializer.Capabilities

Implemented in MsgPack.Serialization.MessagePackSerializer< T >.

◆ UnpackFrom()

object MsgPack.Serialization.IMessagePackSerializer.UnpackFrom ( Unpacker  unpacker)

Deserialize object with specified Unpacker.

Parameters
unpackerUnpacker which unpacks values of resulting object tree.
Returns
The deserialized object.
Exceptions
ArgumentNullExceptionunpacker is null.
System.Runtime.Serialization.SerializationExceptionFailed to deserialize object.
MessageTypeExceptionFailed to deserialize object due to invalid stream.
InvalidMessagePackStreamExceptionFailed to deserialize object due to invalid stream.
NotSupportedExceptionThe type of deserializing is not serializable even if it can be serialized.
See also
MessagePackSerializer.Capabilities

Implemented in MsgPack.Serialization.MessagePackSerializer< T >, and MsgPack.Serialization.MessagePackSerializer< T >.

◆ UnpackTo()

void MsgPack.Serialization.IMessagePackSerializer.UnpackTo ( Unpacker  unpacker,
object  collection 
)

Deserialize collection items with specified Unpacker and stores them to collection .

Parameters
unpackerUnpacker which unpacks values of resulting object tree.
collectionCollection that the items to be stored.
Exceptions
ArgumentNullExceptionunpacker is null. Or collection is null.
ArgumentExceptioncollection is not compatible for this serializer.
System.Runtime.Serialization.SerializationExceptionFailed to deserialize object.
MessageTypeExceptionFailed to deserialize object due to invalid stream.
InvalidMessagePackStreamExceptionFailed to deserialize object due to invalid stream.
NotSupportedExceptionThe type of deserializing is not mutable collection.
See also
MessagePackSerializer.Capabilities

Implemented in MsgPack.Serialization.MessagePackSerializer< T >.


The documentation for this interface was generated from the following file:
  • MsgPackSources/Serialization/IMessagePackSerializer.cs