|
MessagePack for C
|
Go to the source code of this file.
Macros | |
| #define | msgpack_unpack_struct_decl(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) |
| #define | SWITCH_RANGE_BEGIN switch(*p) { |
| #define | SWITCH_RANGE(FROM, TO) |
| #define | SWITCH_RANGE_DEFAULT default: |
| #define | SWITCH_RANGE_END } |
Functions | |
| msgpack_unpack_struct_decl (_stack) | |
| msgpack_unpack_struct_decl (_context) | |
| msgpack_unpack_func (void, _init)(msgpack_unpack_struct(_context) *ctx) | |
| msgpack_unpack_func (msgpack_unpack_object, _data)(msgpack_unpack_struct(_context) *ctx) | |
| msgpack_unpack_func (int, _execute)(msgpack_unpack_struct(_context) *ctx | |
| msgpack_unpack_struct (_stack) *stack = NULL | |
| if (p==pe) | |
| switch (c->ct) | |
| while (p !=pe) | |
Variables | |
| const char * | data |
| const char size_t | len |
| const char size_t size_t * | off |
| const unsigned char *const | pe = (unsigned char*)data + len |
| const void * | n = NULL |
| unsigned int | trail = ctx->trail |
| unsigned int | cs = ctx->cs |
| unsigned int | top = ctx->top |
| msgpack_unpack_user * | user = &ctx->user |
| msgpack_unpack_object | obj |
| int | ret = 1 |
| do | |
| _header_again | __pad0__ |
| p | |
| goto | _out |
| _finish | __pad1__ |
| goto | _end |
| _failed | __pad2__ |
| _out | __pad3__ |
| _end | __pad4__ |
| #define again_fixed_trail | ( | _cs, | |
| trail_len ) |
| #define again_fixed_trail_if_zero | ( | _cs, | |
| trail_len, | |||
| ifzero ) |
| #define msgpack_unpack_struct_decl | ( | name | ) |
| #define push_fixed_value | ( | func, | |
| arg ) |
| #define push_simple_value | ( | func | ) |
| #define push_variable_value | ( | func, | |
| base, | |||
| pos, | |||
| len ) |
| #define start_container | ( | func, | |
| count_, | |||
| ct_ ) |
| #define SWITCH_RANGE | ( | FROM, | |
| TO ) |
| #define SWITCH_RANGE_DEFAULT default: |
| #define SWITCH_RANGE_END } |
| #define USE_CASE_RANGE |
| msgpack_unpack_func | ( | int | , |
| _execute | ) |
| msgpack_unpack_func | ( | msgpack_unpack_object | , |
| _data | ) |
| msgpack_unpack_func | ( | void | , |
| _init | ) |
References MSGPACK_CS_HEADER.
| msgpack_unpack_struct | ( | _stack | ) | = NULL |
Referenced by msgpack_unpack_struct_decl().
| msgpack_unpack_struct_decl | ( | _context | ) |
References cs, MSGPACK_EMBED_STACK_SIZE, msgpack_unpack_struct(), top, trail, and user.
| msgpack_unpack_struct_decl | ( | _stack | ) |
References obj.
| switch | ( | c-> | ct | ) |
References MSGPACK_CT_ARRAY_ITEM, MSGPACK_CT_MAP_KEY, MSGPACK_CT_MAP_VALUE, MSGPACK_UNPACK_PARSE_ERROR, obj, ret, top, and user.
| _header_again __pad0__ |
| _finish __pad1__ |
| _failed __pad2__ |
| _out __pad3__ |
| _end __pad4__ |
| goto _end |
| goto _out |
Referenced by if().
| unsigned int cs = ctx->cs |
Referenced by msgpack_unpack_struct_decl().
| const char* data |
| do |
| const char size_t len |
| const void* n = NULL |
| msgpack_unpack_object obj |
Referenced by msgpack_unpack_struct_decl(), and switch().
| * off |
Referenced by msgpack_unpack(), and msgpack_unpack_next().
| p |
Referenced by if().
| return ret = 1 |
Referenced by switch().
| ctx top = ctx->top |
Referenced by msgpack_unpack_struct_decl(), and switch().
| ctx trail = ctx->trail |
Referenced by msgpack_unpack_struct_decl().
| msgpack_unpack_user* user = &ctx->user |
Referenced by msgpack_unpack_struct_decl(), and switch().