json-gen-c  0.1.5
json-gen-c generate C code for json manipulation
msgpack_codec.h File Reference

MessagePack binary codec runtime — embedded into generated code. More...

#include <stdint.h>
#include <stddef.h>
#include <string.h>
Include dependency graph for msgpack_codec.h:

Go to the source code of this file.

Classes

struct  mp_reader
 

Macros

#define MP_FIXINT_MAX   0x7f
 
#define MP_NEG_FIXINT   0xe0
 
#define MP_NIL   0xc0
 
#define MP_FALSE   0xc2
 
#define MP_TRUE   0xc3
 
#define MP_FLOAT32   0xca
 
#define MP_FLOAT64   0xcb
 
#define MP_UINT8   0xcc
 
#define MP_UINT16   0xcd
 
#define MP_UINT32   0xce
 
#define MP_UINT64   0xcf
 
#define MP_INT8   0xd0
 
#define MP_INT16   0xd1
 
#define MP_INT32   0xd2
 
#define MP_INT64   0xd3
 
#define MP_FIXSTR   0xa0 /* 101xxxxx, len in low 5 bits */
 
#define MP_FIXSTR_MASK   0x1f
 
#define MP_STR8   0xd9
 
#define MP_STR16   0xda
 
#define MP_STR32   0xdb
 
#define MP_FIXARRAY   0x90 /* 1001xxxx, len in low 4 bits */
 
#define MP_FIXARRAY_MASK   0x0f
 
#define MP_ARRAY16   0xdc
 
#define MP_ARRAY32   0xdd
 
#define MP_FIXMAP   0x80 /* 1000xxxx, len in low 4 bits */
 
#define MP_FIXMAP_MASK   0x0f
 
#define MP_MAP16   0xde
 
#define MP_MAP32   0xdf
 

Detailed Description

MessagePack binary codec runtime — embedded into generated code.

This header is NOT compiled directly; it is embedded via xxd into the generated msgpack.gen.c output, providing the runtime pack/unpack engine.