Go to the source code of this file.
|
#define | msgpack_unpack_struct_decl(name) msgpack_unpack_struct(name) |
|
#define | USE_CASE_RANGE |
|
#define | push_simple_value(func) |
|
#define | push_fixed_value(func, arg) |
|
#define | push_variable_value(func, base, pos, len) |
|
#define | again_fixed_trail(_cs, trail_len) |
|
#define | again_fixed_trail_if_zero(_cs, trail_len, ifzero) |
|
#define | start_container(func, count_, ct_) |
|
#define | NEXT_CS(p) ((unsigned int)*p & 0x1f) |
|
#define | SWITCH_RANGE_BEGIN switch(*p) { |
|
#define | SWITCH_RANGE(FROM, TO) case FROM ... TO: |
|
#define | SWITCH_RANGE_DEFAULT default: |
|
#define | SWITCH_RANGE_END } |
|
#define again_fixed_trail |
( |
|
_cs, |
|
|
|
trail_len |
|
) |
| |
Value: goto _fixed_trail_again
unsigned int trail
Definition: unpack_template.h:97
unsigned int cs
Definition: unpack_template.h:98
#define again_fixed_trail_if_zero |
( |
|
_cs, |
|
|
|
trail_len, |
|
|
|
ifzero |
|
) |
| |
Value: goto _fixed_trail_again
if(p==pe)
Definition: unpack_template.h:177
unsigned int trail
Definition: unpack_template.h:97
unsigned int cs
Definition: unpack_template.h:98
#define NEXT_CS |
( |
|
p | ) |
((unsigned int)*p & 0x1f) |
#define push_fixed_value |
( |
|
func, |
|
|
|
arg |
|
) |
| |
Value:if(msgpack_unpack_callback(func)(
user, arg, &
obj) < 0) {
goto _failed; } \
goto _push
msgpack_unpack_user * user
Definition: unpack_template.h:104
msgpack_unpack_object obj
Definition: unpack_template.h:106
#define push_simple_value |
( |
|
func | ) |
|
Value:if(msgpack_unpack_callback(func)(
user, &
obj) < 0) {
goto _failed; } \
goto _push
msgpack_unpack_user * user
Definition: unpack_template.h:104
msgpack_unpack_object obj
Definition: unpack_template.h:106
#define push_variable_value |
( |
|
func, |
|
|
|
base, |
|
|
|
pos, |
|
|
|
len |
|
) |
| |
Value:if(msgpack_unpack_callback(func)(
user, \
(
const char*)base, (
const char*)pos,
len, &
obj) < 0) {
goto _failed; } \
goto _push
msgpack_unpack_user * user
Definition: unpack_template.h:104
msgpack_unpack_object obj
Definition: unpack_template.h:106
const char size_t len
Definition: unpack_template.h:89
#define start_container |
( |
|
func, |
|
|
|
count_, |
|
|
|
ct_ |
|
) |
| |
Value: if(msgpack_unpack_callback(func)(
user, count_, &stack[
top].
obj) < 0) {
goto _failed; }
\ if((count_) == 0) {
obj = stack[
top].obj;
goto _push; } \
stack[
top].count = count_; \
\
\
\
goto _header_again
msgpack_unpack_user * user
Definition: unpack_template.h:104
#define MSGPACK_EMBED_STACK_SIZE
Definition: unpack_define.h:25
if(p==pe)
Definition: unpack_template.h:177
msgpack_unpack_object obj
Definition: unpack_template.h:106
unsigned int top
Definition: unpack_template.h:99
#define SWITCH_RANGE |
( |
|
FROM, |
|
|
|
TO |
|
) |
| case FROM ... TO: |
#define SWITCH_RANGE_BEGIN switch(*p) { |
#define SWITCH_RANGE_DEFAULT default: |
#define SWITCH_RANGE_END } |
msgpack_unpack_func |
( |
void |
, |
|
|
_init |
|
|
) |
| |
msgpack_unpack_func |
( |
msgpack_unpack_object |
, |
|
|
_data |
|
|
) |
| |
msgpack_unpack_func |
( |
int |
, |
|
|
_execute |
|
|
) |
| |
msgpack_unpack_struct |
( |
_stack |
| ) |
= NULL |
msgpack_unpack_struct_decl |
( |
_stack |
| ) |
|
msgpack_unpack_struct_decl |
( |
_context |
| ) |
|
unsigned int cs = ctx->cs |
msgpack_unpack_object obj |
Initial value:{
const char size_t size_t * off
Definition: unpack_template.h:90
const char size_t len
Definition: unpack_template.h:89
const unsigned char* const pe = (unsigned char*)data + len |
msgpack_unpack_user* user = &ctx->user |