-
Notifications
You must be signed in to change notification settings - Fork 887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msgpack_Build_object(cleartext_buffer) #501
Comments
Ok. I will try an implementation using Jansson library. |
Question: what kind of object is a |
The idea that I have in order to msgpack_build_object() is to have an initial
I think of using already existing The questions I have now is how should I allocate memory for MSGPACK_OBJECT_STR objects? Should I use zones for this? If yes, should I use a zone per object? |
Sorry about my late reply.
First, I answer about When msgpack-c unpacking from msgpack formatted byte stream, msgpack-c creates `msgpack_unpacked'. See https://github.com/msgpack/msgpack-c/blob/master/include/msgpack/unpack.h#L28 It contains one Next, how to treat MSGPACK_OBJECT_STR payload. When msgpack-c unpacking from msgpack formatted byte stream, MSGPACK_OBJECT_STR payload doen't copy but is referenced. See
I think that when creating |
Hi,
Supposing I'm having:
Currently, is there such a C function that will build a
struct msgpack_object
fromcleartext_buffer
? It would be very useful because one can further callmsgpack_pack_object()
, thus packing the cleartext_buffer very easy.Thanks,
Stefan
The text was updated successfully, but these errors were encountered: