antirez / antirez/lua-cmsgpack

Extension type support

未关闭
#49 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
383
派生
122
PR 合并指标
30 天内没有已合并 PR

描述

Any chance of adding hooks to support [extension types](https://github.com/msgpack/msgpack/blob/master/spec.md#types-extension-type)? 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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。