gos_msgpack_context_t Struct Reference

Data Fields

gos_msgpack_writer_t writer
 Data writer, see gos_msgpack_writer_t.
 
gos_msgpack_flag_t flags
 Optional flags, see gos_msgpack_flag_t.
 
void * user
 Optional user argument to pass to gos_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 OR buffer members should be populated, NOT both.
See also
MSGPACK_INIT_WITH_BUFFER() and MSGPACK_INIT_WITH_WRITER() helper macros