msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
834 stars 175 forks source link

extension types support #244

Closed schmurfy closed 4 years ago

schmurfy commented 7 years ago

I am currently trying to reimplement an existing messagepack base protocol but I need extension types for a specific application type, looking at the sources I don't find any support for these types, only a mention of adding "PackerUnpackerExtensinos" in the changelog which does not exists anywhere as far as I can tell...

Was it supported and dropped ? Or did I miss something and it is currently supported by another means ?

yfakariya commented 7 years ago

Sorry for delayed response...

Currently ext type is only supported via MessagePackExtendedTypeObject and you must write custom serializer to map between ext type and .NET type. PackerUnpackerExtensions just have extensions methods of Packer and Unpacker.

schmurfy commented 7 years ago

I ended up using another library.