MessagePack for C
Loading...
Searching...
No Matches
unpack_define.h
Go to the documentation of this file.
1/*
2 * MessagePack unpacking routine template
3 *
4 * Copyright (C) 2008-2010 FURUHASHI Sadayuki
5 *
6 * Distributed under the Boost Software License, Version 1.0.
7 * (See accompanying file LICENSE_1_0.txt or copy at
8 * http://www.boost.org/LICENSE_1_0.txt)
9 */
10#ifndef MSGPACK_UNPACK_DEFINE_H
11#define MSGPACK_UNPACK_DEFINE_H
12
13#include "msgpack/sysdep.h"
14#include <stdlib.h>
15#include <string.h>
16#include <assert.h>
17#include <stdio.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
24#ifndef MSGPACK_EMBED_STACK_SIZE
25#define MSGPACK_EMBED_STACK_SIZE 32
26#endif
27
28
29typedef enum {
30 MSGPACK_CS_HEADER = 0x00, // nil
31
32 //MSGPACK_CS_ = 0x01,
33 //MSGPACK_CS_ = 0x02, // false
34 //MSGPACK_CS_ = 0x03, // true
35
39
43
54
60
61 MSGPACK_CS_STR_8 = 0x19, // str8
62 MSGPACK_CS_STR_16 = 0x1a, // str16
63 MSGPACK_CS_STR_32 = 0x1b, // str32
68
69 //MSGPACK_ACS_BIG_INT_VALUE,
70 //MSGPACK_ACS_BIG_FLOAT_VALUE,
75
76
82
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* msgpack/unpack_define.h */
89
msgpack_container_type
Definition unpack_define.h:77
@ MSGPACK_CT_ARRAY_ITEM
Definition unpack_define.h:78
@ MSGPACK_CT_MAP_VALUE
Definition unpack_define.h:80
@ MSGPACK_CT_MAP_KEY
Definition unpack_define.h:79
msgpack_unpack_state
Definition unpack_define.h:29
@ MSGPACK_CS_EXT_32
Definition unpack_define.h:42
@ MSGPACK_CS_EXT_16
Definition unpack_define.h:41
@ MSGPACK_CS_STR_8
Definition unpack_define.h:61
@ MSGPACK_CS_STR_32
Definition unpack_define.h:63
@ MSGPACK_CS_DOUBLE
Definition unpack_define.h:45
@ MSGPACK_CS_FIXEXT_4
Definition unpack_define.h:57
@ MSGPACK_CS_UINT_32
Definition unpack_define.h:48
@ MSGPACK_CS_MAP_16
Definition unpack_define.h:66
@ MSGPACK_CS_BIN_32
Definition unpack_define.h:38
@ MSGPACK_CS_BIN_16
Definition unpack_define.h:37
@ MSGPACK_CS_UINT_64
Definition unpack_define.h:49
@ MSGPACK_CS_FLOAT
Definition unpack_define.h:44
@ MSGPACK_CS_ARRAY_32
Definition unpack_define.h:65
@ MSGPACK_CS_FIXEXT_1
Definition unpack_define.h:55
@ MSGPACK_CS_INT_8
Definition unpack_define.h:50
@ MSGPACK_CS_INT_32
Definition unpack_define.h:52
@ MSGPACK_ACS_BIN_VALUE
Definition unpack_define.h:72
@ MSGPACK_CS_ARRAY_16
Definition unpack_define.h:64
@ MSGPACK_CS_FIXEXT_16
Definition unpack_define.h:59
@ MSGPACK_CS_STR_16
Definition unpack_define.h:62
@ MSGPACK_ACS_STR_VALUE
Definition unpack_define.h:71
@ MSGPACK_CS_BIN_8
Definition unpack_define.h:36
@ MSGPACK_CS_INT_64
Definition unpack_define.h:53
@ MSGPACK_CS_FIXEXT_2
Definition unpack_define.h:56
@ MSGPACK_CS_HEADER
Definition unpack_define.h:30
@ MSGPACK_CS_FIXEXT_8
Definition unpack_define.h:58
@ MSGPACK_CS_MAP_32
Definition unpack_define.h:67
@ MSGPACK_ACS_EXT_VALUE
Definition unpack_define.h:73
@ MSGPACK_CS_EXT_8
Definition unpack_define.h:40
@ MSGPACK_CS_INT_16
Definition unpack_define.h:51
@ MSGPACK_CS_UINT_16
Definition unpack_define.h:47
@ MSGPACK_CS_UINT_8
Definition unpack_define.h:46