msgpuck
msgpuck copied to clipboard
A simple and efficient MsgPack binary serialization library in a self-contained header file
cmake -S Common/Import/msgpuck -B Common/Import/msgpuck/build 1141-- The CXX compiler identification is GNU 10.2.1 1142-- Detecting C compiler ABI info 1143-- The C compiler identification is GNU 10.2.1 1144-- Detecting C...
hello, all I have been using this libray, but failed at encode_int. when I looked into the code, I found: " MP_IMPL char * mp_encode_int(char *data, int64_t num) { assert(num...
port to windows platform. run well on windows. tested on msvc2017
msgpuck 2.0 with backported 40e24ccf3ec191e6f576da967a64630ca2160bfc. Test `mp_read_double(mp_encode_double(-5.555)) check result` fails on **x86**, but not x86_64. ``` ok 61 - mp_read_double(mp_encode_uint(123)) check success ok 62 - mp_read_double(mp_encode_uint(123)) check pos advanced ok...
The list of problems found by [PVS Studio](http://www.viva64.com/en/pvs-studio/) by [Viva64](http://www.viva64.com/) in 1.1-6-g466b6a6: - [ ] [test/msgpuck.c:350](https://github.com/rtsisyk/msgpuck/blob/466b6a6cb60a7f4027992ae6df4744495e6ff7b7/test/msgpuck.c#L350) warn V512 A call of the 'memcmp' function will lead to underflow of the...
GLIBC allow to register a custom printf() modificator: https://www.gnu.org/software/libc/manual/html_node/Registering-New-Conversions.html#Registering-New-Conversions
Please add the ext specification: encode/decode https://github.com/msgpack/msgpack/blob/master/spec.md#formats-ext The some code of encode/decode is https://github.com/akalend/hhvm-msgpack/blob/hhvm-v-3.12/msgpuck.h#L1515-L1540 and https://github.com/akalend/hhvm-msgpack/blob/hhvm-v-3.12/msgpuck.h#L1627-L1659 but it is not full realisation of specification: absent small objects 1,2,4 and 16...
Add `mp_fprint(FILE *, char *data)` to use for debugging purpose.
Adapt stream encoder like `struct mpstream` in Tarantool: https://github.com/tarantool/tarantool/blob/8f59f439672f0b470d20a176da9876ad120d4244/src/lua/msgpack.h#L69