Stormancer.Infrastructure.MsgPackLambdaTypeSerializer< T > Class Template Reference

A custom msgPack serializer that allows to declare its serialization logic using lambda methods More...

Inherits MsgPack.Serialization.MessagePackSerializer< T >.

Public Member Functions

 MsgPackLambdaTypeSerializer (Action< MsgPack.Packer, T, SerializationContext > pack, Func< MsgPack.Unpacker, SerializationContext, T > unpack, SerializationContext ctx)
 Creates a MsgPackLambdaTypeSerializer instance More...
 

Detailed Description

A custom msgPack serializer that allows to declare its serialization logic using lambda methods

Template Parameters
TThe type that this serializer will serialize/deserialize

Constructor & Destructor Documentation

◆ MsgPackLambdaTypeSerializer()

Creates a MsgPackLambdaTypeSerializer instance

Parameters
packAn action that is executed when an instance of T has to be serialized
unpackA function that is executed when an instance of T has to be deserialized
ctxThe serialization context

The documentation for this class was generated from the following file:
  • Stormancer.Unity/Infrastructure/MsgPackSerializer.cs