10 #ifndef MSGPACK_V1_UNPACK_DECL_HPP
11 #define MSGPACK_V1_UNPACK_DECL_HPP
24 #if !defined(MSGPACK_USE_CPP03)
36 #ifdef _msgpack_atomic_counter_header
37 #include _msgpack_atomic_counter_header
42 #ifndef MSGPACK_UNPACKER_INIT_BUFFER_SIZE
43 #define MSGPACK_UNPACKER_INIT_BUFFER_SIZE (64*1024)
46 #ifndef MSGPACK_UNPACKER_RESERVE_SIZE
47 #define MSGPACK_UNPACKER_RESERVE_SIZE (32*1024)
52 #ifndef MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE
53 #define MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE MSGPACK_UNPACKER_INIT_BUFFER_SIZE
90 std::size_t
array = 0xffffffff,
91 std::size_t
map = 0xffffffff,
92 std::size_t
str = 0xffffffff,
93 std::size_t
bin = 0xffffffff,
94 std::size_t
ext = 0xffffffff,
95 std::size_t
depth = 0xffffffff)
102 std::size_t
array()
const {
return array_; }
103 std::size_t
map()
const {
return map_; }
104 std::size_t
str()
const {
return str_; }
105 std::size_t
bin()
const {
return bin_; }
106 std::size_t
ext()
const {
return ext_; }
107 std::size_t
depth()
const {
return depth_; }
170 #if defined(MSGPACK_USE_CPP03)
176 std::atomic<unsigned int>
const&
get_count(
void* buffer);
184 template <
typename T>
187 template <
typename T>
188 typename msgpack::enable_if<
sizeof(T) ==
sizeof(
fix_tag)>::type
load(uint32_t& dst,
const char* n);
190 template <
typename T>
191 typename msgpack::enable_if<
sizeof(T) == 1>::type
load(T& dst,
const char* n);
193 template <
typename T>
194 typename msgpack::enable_if<
sizeof(T) == 2>::type
load(T& dst,
const char* n);
196 template <
typename T>
197 typename msgpack::enable_if<
sizeof(T) == 4>::type
load(T& dst,
const char* n);
199 template <
typename T>
200 typename msgpack::enable_if<
sizeof(T) == 8>::type
load(T& dst,
const char* n);
226 const char* data, std::size_t len, std::size_t& off,
bool& referenced,
242 const char* data, std::size_t len, std::size_t& off,
258 const char* data, std::size_t len,
bool& referenced,
273 const char* data, std::size_t len,
292 const char* data, std::size_t len, std::size_t& off,
bool& referenced,
309 const char* data, std::size_t len, std::size_t& off,
326 const char* data, std::size_t len,
bool& referenced,
342 const char* data, std::size_t len,
361 const char* data, std::size_t len, std::size_t& off,
bool& referenced,
379 const char* data, std::size_t len, std::size_t& off,
397 const char* data, std::size_t len,
bool& referenced,
414 const char* data, std::size_t len,
440 unpack_imp(
const char* data, std::size_t len, std::size_t& off,
Definition: unpack.hpp:318
The class holds object and zone.
Definition: object.hpp:44
Definition: unpack_decl.hpp:87
std::size_t bin() const
Definition: unpack_decl.hpp:105
std::size_t str() const
Definition: unpack_decl.hpp:104
unpack_limit(std::size_t array=0xffffffff, std::size_t map=0xffffffff, std::size_t str=0xffffffff, std::size_t bin=0xffffffff, std::size_t ext=0xffffffff, std::size_t depth=0xffffffff)
Definition: unpack_decl.hpp:89
std::size_t map() const
Definition: unpack_decl.hpp:103
std::size_t depth() const
Definition: unpack_decl.hpp:107
std::size_t array() const
Definition: unpack_decl.hpp:102
std::size_t ext() const
Definition: unpack_decl.hpp:106
Unpacking class for a stream deserialization.
Definition: unpack.hpp:862
Definition: cpp03_zone.hpp:31
void unpack_int32(int32_t d, msgpack::object &o)
Definition: unpack.hpp:90
void unpack_ext(unpack_user &u, const char *p, std::size_t l, msgpack::object &o)
Definition: unpack.hpp:205
void unpack_float(float d, msgpack::object &o)
Definition: unpack.hpp:98
void unpack_false(msgpack::object &o)
Definition: unpack.hpp:110
void unpack_int16(int16_t d, msgpack::object &o)
Definition: unpack.hpp:86
void unpack_str(unpack_user &u, const char *p, uint32_t l, msgpack::object &o)
Definition: unpack.hpp:167
void unpack_nil(msgpack::object &o)
Definition: unpack.hpp:104
void init_count(void *buffer)
Definition: unpack.hpp:241
parse_return unpack_imp(const char *data, std::size_t len, std::size_t &off, msgpack::zone &result_zone, msgpack::object &result, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit())
Definition: unpack.hpp:1353
void unpack_uint64(uint64_t d, msgpack::object &o)
Definition: unpack.hpp:79
std::atomic< unsigned int > const & get_count(void *buffer)
Definition: unpack.hpp:278
void unpack_array_item(msgpack::object &c, msgpack::object const &o)
Definition: unpack.hpp:129
void decr_count(void *buffer)
Definition: unpack.hpp:250
void unpack_int64(int64_t d, msgpack::object &o)
Definition: unpack.hpp:94
void unpack_uint8(uint8_t d, msgpack::object &o)
Definition: unpack.hpp:70
void unpack_bin(unpack_user &u, const char *p, uint32_t l, msgpack::object &o)
Definition: unpack.hpp:186
void unpack_int8(int8_t d, msgpack::object &o)
Definition: unpack.hpp:82
void incr_count(void *buffer)
Definition: unpack.hpp:263
void unpack_true(msgpack::object &o)
Definition: unpack.hpp:107
void unpack_map_item(msgpack::object &c, msgpack::object const &k, msgpack::object const &v)
Definition: unpack.hpp:155
void unpack_uint16(uint16_t d, msgpack::object &o)
Definition: unpack.hpp:73
void unpack_double(double d, msgpack::object &o)
Definition: unpack.hpp:101
void unpack_uint32(uint32_t d, msgpack::object &o)
Definition: unpack.hpp:76
msgpack::enable_if< sizeof(T)==sizeof(fix_tag)>::type load(uint32_t &dst, const char *n)
Definition: unpack.hpp:294
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
object_type
Definition: object_fwd_decl.hpp:27
Definition: adaptor_base.hpp:15
object_handle unpacked
Definition: unpack_decl.hpp:207
bool(* unpack_reference_func)(msgpack::type::object_type type, std::size_t size, void *user_data)
The type of reference or copy judging function.
Definition: unpack_decl.hpp:74
parse_return
Definition: parse_return.hpp:23
msgpack::object_handle unpack(const char *data, std::size_t len, std::size_t &off, bool &referenced, unpack_reference_func f, void *user_data, unpack_limit const &limit)
Unpack msgpack::object from a buffer.
Definition: unpack.hpp:1397
Definition: unpack_exception.hpp:61
Definition: unpack_exception.hpp:88
Definition: unpack_exception.hpp:106
Definition: unpack_decl.hpp:180
char f1[65]
Definition: unpack_decl.hpp:181
Definition: unpack.hpp:285
Definition: unpack_exception.hpp:97
Definition: unpack_exception.hpp:43
Definition: unpack_exception.hpp:70
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
Definition: unpack_exception.hpp:34
Definition: unpack_exception.hpp:52
Definition: unpack_exception.hpp:79
Definition: unpack_exception.hpp:25
unsigned int _msgpack_atomic_counter_t
Definition: sysdep.hpp:73
#define MSGPACK_NULLPTR
Definition: cpp_config_decl.hpp:85
const size_t COUNTER_SIZE
Definition: unpack_decl.hpp:40
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66