8typedef enum vl_msgpack_io_error_{
27typedef struct vl_msgpack_encoder_{
164static inline void vlMsgPackIOEncodeString (
vl_msgpack_encoder* enc,
const char* value){
258typedef struct vl_msgpack_io_token_{
314typedef struct vl_msgpack_decoder_{
A multi-purpose byte buffer.
Definition vl_buffer.h:19
VL_MEMORY_SIZE_T vl_memsize_t
Definition vl_memory.h:18
vl_hash_iter vl_msgpack_iter
Definition vl_msgpack.h:17
vl_msgpack_type
All MessagePack Types.
Definition vl_msgpack.h:22
MessagePack Document Object Model.
Definition vl_msgpack.h:92
void vlMsgPackIOEncodeBool(vl_msgpack_encoder *enc, vl_bool_t value)
Encodes a boolean value into the MessagePack stream.
Definition vl_msgpack_io.c:222
vl_dsoffs_t srcOffset
Definition vl_msgpack_io.h:317
vl_msgpack_type errorType
Definition vl_msgpack_io.h:320
vl_msgpack_io_error
Definition vl_msgpack_io.h:8
@ VL_MSGPACK_IO_ERR_NONE
Definition vl_msgpack_io.h:9
@ VL_MSGPACK_IO_ERR_UNEXPECTED_EOF
Definition vl_msgpack_io.h:13
@ VL_MSGPACK_IO_ERR_UNEXPECTED_TOKEN
Definition vl_msgpack_io.h:11
@ VL_MSGPACK_IO_ERR_UNBALANCED_MAP
Definition vl_msgpack_io.h:12
@ VL_MSGPACK_IO_ERR_STACK_UNDERFLOW
Definition vl_msgpack_io.h:10
void vlMsgPackIOEncodeExt(vl_msgpack_encoder *enc, vl_int8_t type, const void *value, vl_uint32_t len)
Encodes an extension type value into the MessagePack stream.
Definition vl_msgpack_io.c:308
vl_dsidx_t errorDepth
Definition vl_msgpack_io.h:35
vl_bool_t vlMsgPackIODecoderNext(vl_msgpack_decoder *decoder, vl_msgpack_io_token *tkPtr)
Extracts the next token from the MessagePack stream.
Definition vl_msgpack_io.c:580
void vlMsgPackIOEncoderDelete(vl_msgpack_encoder *enc)
Deletes the specified MessagePack encoder.
Definition vl_msgpack_io.c:172
vl_msgpack_encoder * vlMsgPackIOEncoderNew()
Allocates and initializes a MessagePack encoder.
Definition vl_msgpack_io.c:166
vl_memsize_t srcLen
Definition vl_msgpack_io.h:316
vl_msgpack_iter vlMsgPackIODecodeToDOM(vl_msgpack_decoder *decoder, vl_msgpack *dest, vl_msgpack_iter parent, const void *key, vl_memsize_t keyLen)
Decodes MessagePack data into a DOM.
Definition vl_msgpack_io.c:921
void vlMsgPackIOEncoderFree(vl_msgpack_encoder *enc)
Frees the specified MessagePack encoder.
Definition vl_msgpack_io.c:161
void vlMsgPackIOEncodeStringLen(vl_msgpack_encoder *enc, const char *value, vl_uint32_t len)
Encodes a string's length into the MessagePack stream.
Definition vl_msgpack_io.c:228
void vlMsgPackIOEncodeInt(vl_msgpack_encoder *enc, vl_ilarge_t value)
Encodes a signed integer value into the MessagePack stream.
Definition vl_msgpack_io.c:396
vl_buffer buffer
Definition vl_msgpack_io.h:31
const vl_uint8_t * srcMem
Definition vl_msgpack_io.h:315
vl_msgpack_type type
Definition vl_msgpack_io.h:306
void vlMsgPackIOEncodeUInt(vl_msgpack_encoder *enc, vl_ularge_t value)
Encodes an unsigned integer value into the MessagePack stream.
Definition vl_msgpack_io.c:452
vl_dsoffs_t errorOffset
Definition vl_msgpack_io.h:321
vl_stack stateStack
Definition vl_msgpack_io.h:29
void vlMsgPackIOEncodeFloat32(vl_msgpack_encoder *enc, vl_float32_t value)
Encodes a 32-bit floating point value into the MessagePack stream.
Definition vl_msgpack_io.c:262
void vlMsgPackIOEncodeFromDOM(vl_msgpack_encoder *encoder, vl_msgpack *src, vl_msgpack_iter curIter)
Encodes from a MessagePack DOM.
Definition vl_msgpack_io.c:493
void vlMsgPackIODecoderStart(vl_msgpack_decoder *dec, const void *srcMem, vl_memsize_t srcLen)
Starts the MessagePack decoding process.
Definition vl_msgpack_io.c:560
void vlMsgPackIOEncodeFloat64(vl_msgpack_encoder *enc, vl_float64_t value)
Encodes a 64-bit floating point value into the MessagePack stream.
Definition vl_msgpack_io.c:270
void vlMsgPackIOEncodeMapEnd(vl_msgpack_encoder *enc)
Ends encoding a map in the MessagePack stream.
Definition vl_msgpack_io.c:190
void vlMsgPackIOEncoderClear(vl_msgpack_encoder *enc)
Clears the state of the MessagePack encoder.
Definition vl_msgpack_io.c:177
void vlMsgPackIOEncodeNil(vl_msgpack_encoder *enc)
Encodes a nil value into the MessagePack stream.
Definition vl_msgpack_io.c:487
void vlMsgPackIOEncodeMapBegin(vl_msgpack_encoder *enc)
Begins encoding a map in the MessagePack stream.
Definition vl_msgpack_io.c:185
void vlMsgPackIOEncodeArrayBegin(vl_msgpack_encoder *enc)
Begins encoding an array in the MessagePack stream.
Definition vl_msgpack_io.c:209
void vlMsgPackIOEncodeBinary(vl_msgpack_encoder *enc, const void *value, vl_uint32_t len)
Encodes a binary value into the MessagePack stream.
Definition vl_msgpack_io.c:278
vl_msgpack_type errorType
Definition vl_msgpack_io.h:34
void vlMsgPackIOEncoderInit(vl_msgpack_encoder *enc)
Initializes the specified MessagePack encoder.
Definition vl_msgpack_io.c:152
vl_msgpack_io_error error
Definition vl_msgpack_io.h:319
vl_msgpack_io_error error
Definition vl_msgpack_io.h:33
void vlMsgPackIOEncodeArrayEnd(vl_msgpack_encoder *enc)
Ends encoding an array in the MessagePack stream.
Definition vl_msgpack_io.c:214
A MessagePack decoder.
Definition vl_msgpack_io.h:314
MessagePack Format Encoder State.
Definition vl_msgpack_io.h:27
A MessagePack Token.
Definition vl_msgpack_io.h:258
VL_BOOL_T vl_bool_t
Definition vl_numtypes.h:128
VL_STRUCTURE_INDEX_T vl_dsidx_t
Index type for data structures.
Definition vl_numtypes.h:13
VL_F32_T vl_float32_t
32-bit floating point number type.
Definition vl_numtypes.h:111
VL_ULARGE_T vl_ularge_t
Largest available unsigned integer type.
Definition vl_numtypes.h:74
VL_STRUCTURE_OFFSET_T vl_dsoffs_t
Byte offset type for data structures.
Definition vl_numtypes.h:8
VL_ILARGE_T vl_ilarge_t
Largest available signed integer type.
Definition vl_numtypes.h:78
A virtual stack allocator.
Definition vl_stack.h:21