Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a MsgPack 'zone'

Tags:

c

msgpack

I have seen references to 'zone' in the MsgPack C headers, but can find no documentation on what it is or what it's for. What is it? Furthermore, where's the function-by-function documentation for the C API?

like image 263
brooks94 Avatar asked Oct 16 '12 18:10

brooks94


1 Answers

msgpack_zone is an internal structure used for memory management & lifecycle at unpacking time. I would say you will never have to interact with it if you use the standard, high-level interface for unpacking or the alternative streaming version.

To my knowledge, there is no detailed documentation: instead you should refer to the test suite that provides convenient code samples to achieve the common tasks, e.g. see pack_unpack_c.cc and streaming_c.cc.

like image 102
deltheil Avatar answered Oct 14 '22 02:10

deltheil