Sitelet https://github.com/antirez/lua-cmsgpack/issues/49
Skip to content

Extension type support #49

Description

@michaelmior

Any chance of adding hooks to support extension types? This would basically require an API where callers could specify two callback functions one for encoding and one for decoding. Then mp_encode_lua_type and mp_decode_to_lua_type would call these functions to produce the actual values to be used when serializing.

Examples of two different ways this can be done for msgpack-python are below

https://pypi.python.org/pypi/msgpack-python#packing-unpacking-of-custom-data-type
https://pypi.python.org/pypi/msgpack-python#extended-types

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions