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
ORbuffer
members should be populated, NOT both.
- See also
- MSGPACK_INIT_WITH_BUFFER() and MSGPACK_INIT_WITH_WRITER() helper macros
- Examples:
- cloud/dps_demo/main.c , demo/3d_demo/main.c , demo/accelerometer_stream/main.c , demo/secure_element/commands.c , dms/messages/main.c , dms/telemetry/main.c , hurricane/arducam/camera.c , hurricane/security_camera/camera.c , hurricane/security_camera/common.h , hurricane/security_camera/sensor.c , hurricane/weatherstation/main.c , and network/http_server_stream/main.c .