Loading...
Searching...
No Matches
unpack_define.h
Go to the documentation of this file.
/*
* MessagePack unpacking routine template
*
* Copyright (C) 2008-2010 FURUHASHI Sadayuki
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MSGPACK_UNPACK_DEFINE_H
#define MSGPACK_UNPACK_DEFINE_H
#include "msgpack/sysdep.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MSGPACK_EMBED_STACK_SIZE
#define MSGPACK_EMBED_STACK_SIZE 32
#endif
typedef enum {
MSGPACK_CS_HEADER = 0x00, // nil
//MSGPACK_CS_ = 0x01,
//MSGPACK_CS_ = 0x02, // false
//MSGPACK_CS_ = 0x03, // true
MSGPACK_CS_BIN_8 = 0x04,
MSGPACK_CS_BIN_16 = 0x05,
MSGPACK_CS_BIN_32 = 0x06,
MSGPACK_CS_EXT_8 = 0x07,
MSGPACK_CS_EXT_16 = 0x08,
MSGPACK_CS_EXT_32 = 0x09,
MSGPACK_CS_FLOAT = 0x0a,
MSGPACK_CS_DOUBLE = 0x0b,
MSGPACK_CS_UINT_8 = 0x0c,
MSGPACK_CS_UINT_16 = 0x0d,
MSGPACK_CS_UINT_32 = 0x0e,
MSGPACK_CS_UINT_64 = 0x0f,
MSGPACK_CS_INT_8 = 0x10,
MSGPACK_CS_INT_16 = 0x11,
MSGPACK_CS_INT_32 = 0x12,
MSGPACK_CS_INT_64 = 0x13,
MSGPACK_CS_FIXEXT_1 = 0x14,
MSGPACK_CS_FIXEXT_2 = 0x15,
MSGPACK_CS_FIXEXT_4 = 0x16,
MSGPACK_CS_FIXEXT_8 = 0x17,
MSGPACK_CS_FIXEXT_16 = 0x18,
MSGPACK_CS_STR_8 = 0x19, // str8
MSGPACK_CS_STR_16 = 0x1a, // str16
MSGPACK_CS_STR_32 = 0x1b, // str32
MSGPACK_CS_ARRAY_16 = 0x1c,
MSGPACK_CS_ARRAY_32 = 0x1d,
MSGPACK_CS_MAP_16 = 0x1e,
MSGPACK_CS_MAP_32 = 0x1f,
//MSGPACK_ACS_BIG_INT_VALUE,
//MSGPACK_ACS_BIG_FLOAT_VALUE,
MSGPACK_ACS_STR_VALUE,
MSGPACK_ACS_BIN_VALUE,
MSGPACK_ACS_EXT_VALUE
} msgpack_unpack_state;
typedef enum {
MSGPACK_CT_ARRAY_ITEM,
MSGPACK_CT_MAP_KEY,
MSGPACK_CT_MAP_VALUE
} msgpack_container_type;
#ifdef __cplusplus
}
#endif
#endif /* msgpack/unpack_define.h */
msgpack_container_type
msgpack_container_type
Definition unpack_define.h:77
MSGPACK_CT_ARRAY_ITEM
@ MSGPACK_CT_ARRAY_ITEM
Definition unpack_define.h:78
MSGPACK_CT_MAP_VALUE
@ MSGPACK_CT_MAP_VALUE
Definition unpack_define.h:80
MSGPACK_CT_MAP_KEY
@ MSGPACK_CT_MAP_KEY
Definition unpack_define.h:79
msgpack_unpack_state
msgpack_unpack_state
Definition unpack_define.h:29
MSGPACK_CS_EXT_32
@ MSGPACK_CS_EXT_32
Definition unpack_define.h:42
MSGPACK_CS_EXT_16
@ MSGPACK_CS_EXT_16
Definition unpack_define.h:41
MSGPACK_CS_STR_8
@ MSGPACK_CS_STR_8
Definition unpack_define.h:61
MSGPACK_CS_STR_32
@ MSGPACK_CS_STR_32
Definition unpack_define.h:63
MSGPACK_CS_DOUBLE
@ MSGPACK_CS_DOUBLE
Definition unpack_define.h:45
MSGPACK_CS_FIXEXT_4
@ MSGPACK_CS_FIXEXT_4
Definition unpack_define.h:57
MSGPACK_CS_UINT_32
@ MSGPACK_CS_UINT_32
Definition unpack_define.h:48
MSGPACK_CS_MAP_16
@ MSGPACK_CS_MAP_16
Definition unpack_define.h:66
MSGPACK_CS_BIN_32
@ MSGPACK_CS_BIN_32
Definition unpack_define.h:38
MSGPACK_CS_BIN_16
@ MSGPACK_CS_BIN_16
Definition unpack_define.h:37
MSGPACK_CS_UINT_64
@ MSGPACK_CS_UINT_64
Definition unpack_define.h:49
MSGPACK_CS_FLOAT
@ MSGPACK_CS_FLOAT
Definition unpack_define.h:44
MSGPACK_CS_ARRAY_32
@ MSGPACK_CS_ARRAY_32
Definition unpack_define.h:65
MSGPACK_CS_FIXEXT_1
@ MSGPACK_CS_FIXEXT_1
Definition unpack_define.h:55
MSGPACK_CS_INT_8
@ MSGPACK_CS_INT_8
Definition unpack_define.h:50
MSGPACK_CS_INT_32
@ MSGPACK_CS_INT_32
Definition unpack_define.h:52
MSGPACK_ACS_BIN_VALUE
@ MSGPACK_ACS_BIN_VALUE
Definition unpack_define.h:72
MSGPACK_CS_ARRAY_16
@ MSGPACK_CS_ARRAY_16
Definition unpack_define.h:64
MSGPACK_CS_FIXEXT_16
@ MSGPACK_CS_FIXEXT_16
Definition unpack_define.h:59
MSGPACK_CS_STR_16
@ MSGPACK_CS_STR_16
Definition unpack_define.h:62
MSGPACK_ACS_STR_VALUE
@ MSGPACK_ACS_STR_VALUE
Definition unpack_define.h:71
MSGPACK_CS_BIN_8
@ MSGPACK_CS_BIN_8
Definition unpack_define.h:36
MSGPACK_CS_INT_64
@ MSGPACK_CS_INT_64
Definition unpack_define.h:53
MSGPACK_CS_FIXEXT_2
@ MSGPACK_CS_FIXEXT_2
Definition unpack_define.h:56
MSGPACK_CS_HEADER
@ MSGPACK_CS_HEADER
Definition unpack_define.h:30
MSGPACK_CS_FIXEXT_8
@ MSGPACK_CS_FIXEXT_8
Definition unpack_define.h:58
MSGPACK_CS_MAP_32
@ MSGPACK_CS_MAP_32
Definition unpack_define.h:67
MSGPACK_ACS_EXT_VALUE
@ MSGPACK_ACS_EXT_VALUE
Definition unpack_define.h:73
MSGPACK_CS_EXT_8
@ MSGPACK_CS_EXT_8
Definition unpack_define.h:40
MSGPACK_CS_INT_16
@ MSGPACK_CS_INT_16
Definition unpack_define.h:51
MSGPACK_CS_UINT_16
@ MSGPACK_CS_UINT_16
Definition unpack_define.h:47
MSGPACK_CS_UINT_8
@ MSGPACK_CS_UINT_8
Definition unpack_define.h:46