Skip to content

Custom Extensions

Kelly Schultz edited this page Jul 16, 2023 · 1 revision

Extensions

MessagePack defines two kinds of extensions, standard extensions and user extensions. There is only one standard extension defined at the moment, the timestamp extension (see the mp_timestamp_type derived type).

In order to provide support for a custom extension, the user must define a type that inherits from mp_value_type, and also register callback functions for unpacking this type from serialized data.

Registering a Custom User Extension

TODO

Clone this wiki locally