Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello_message_pack
unpack_define.h
00001 /* 00002 * MessagePack unpacking routine template 00003 * 00004 * Copyright (C) 2008-2010 FURUHASHI Sadayuki 00005 * 00006 * Distributed under the Boost Software License, Version 1.0. 00007 * (See accompanying file LICENSE_1_0.txt or copy at 00008 * http://www.boost.org/LICENSE_1_0.txt) 00009 */ 00010 #ifndef MSGPACK_UNPACK_DEFINE_H 00011 #define MSGPACK_UNPACK_DEFINE_H 00012 00013 #include "sysdep.h" 00014 #include <stdlib.h> 00015 #include <string.h> 00016 #include <assert.h> 00017 #include <stdio.h> 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 00024 #ifndef MSGPACK_EMBED_STACK_SIZE 00025 #define MSGPACK_EMBED_STACK_SIZE 32 00026 #endif 00027 00028 00029 typedef enum { 00030 MSGPACK_CS_HEADER = 0x00, // nil 00031 00032 //MSGPACK_CS_ = 0x01, 00033 //MSGPACK_CS_ = 0x02, // false 00034 //MSGPACK_CS_ = 0x03, // true 00035 00036 MSGPACK_CS_BIN_8 = 0x04, 00037 MSGPACK_CS_BIN_16 = 0x05, 00038 MSGPACK_CS_BIN_32 = 0x06, 00039 00040 MSGPACK_CS_EXT_8 = 0x07, 00041 MSGPACK_CS_EXT_16 = 0x08, 00042 MSGPACK_CS_EXT_32 = 0x09, 00043 00044 MSGPACK_CS_FLOAT = 0x0a, 00045 MSGPACK_CS_DOUBLE = 0x0b, 00046 MSGPACK_CS_UINT_8 = 0x0c, 00047 MSGPACK_CS_UINT_16 = 0x0d, 00048 MSGPACK_CS_UINT_32 = 0x0e, 00049 MSGPACK_CS_UINT_64 = 0x0f, 00050 MSGPACK_CS_INT_8 = 0x10, 00051 MSGPACK_CS_INT_16 = 0x11, 00052 MSGPACK_CS_INT_32 = 0x12, 00053 MSGPACK_CS_INT_64 = 0x13, 00054 00055 MSGPACK_CS_FIXEXT_1 = 0x14, 00056 MSGPACK_CS_FIXEXT_2 = 0x15, 00057 MSGPACK_CS_FIXEXT_4 = 0x16, 00058 MSGPACK_CS_FIXEXT_8 = 0x17, 00059 MSGPACK_CS_FIXEXT_16 = 0x18, 00060 00061 MSGPACK_CS_STR_8 = 0x19, // str8 00062 MSGPACK_CS_STR_16 = 0x1a, // str16 00063 MSGPACK_CS_STR_32 = 0x1b, // str32 00064 MSGPACK_CS_ARRAY_16 = 0x1c, 00065 MSGPACK_CS_ARRAY_32 = 0x1d, 00066 MSGPACK_CS_MAP_16 = 0x1e, 00067 MSGPACK_CS_MAP_32 = 0x1f, 00068 00069 //MSGPACK_ACS_BIG_INT_VALUE, 00070 //MSGPACK_ACS_BIG_FLOAT_VALUE, 00071 MSGPACK_ACS_STR_VALUE, 00072 MSGPACK_ACS_BIN_VALUE, 00073 MSGPACK_ACS_EXT_VALUE 00074 } msgpack_unpack_state; 00075 00076 00077 typedef enum { 00078 MSGPACK_CT_ARRAY_ITEM, 00079 MSGPACK_CT_MAP_KEY, 00080 MSGPACK_CT_MAP_VALUE 00081 } msgpack_container_type; 00082 00083 00084 #ifdef __cplusplus 00085 } 00086 #endif 00087 00088 #endif /* msgpack/unpack_define.h */
Generated on Tue Jul 12 2022 22:51:46 by
1.7.2