msgpack_context_t Struct Reference
MessagePack data writing context. More...
Data Fields | |
msgpack_writer_t | writer |
Data writer, see msgpack_writer_t. | |
void * | user |
Optional user argument to pass to msgpack_writer_t. | |
uint8_t * | buffer |
buffer to hold 'packed' message data | |
uint8_t * | ptr |
Pointer to unused address in buffer. | |
uint8_t * | end |
Address of end of buffer ( end = buffer + sizeof(buffer) ) | |
Detailed Description
MessagePack data writing context.
This context should be initialized before calling the msgpack_write_xxx APIs
- Note
- Either the
writer
ORbuffer
members should be populated, NOT both.
- See also
- MSGPACK_INIT_WITH_BUFFER() and MSGPACK_INIT_WITH_WRITER() helper macros