MessagePack for C++
Loading...
Searching...
No Matches
unpack_decl.hpp
Go to the documentation of this file.
1//
2// MessagePack for C++ deserializing routine
3//
4// Copyright (C) 2018 KONDO Takatoshi
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_V3_UNPACK_DECL_HPP
11#define MSGPACK_V3_UNPACK_DECL_HPP
12
14
15namespace msgpack {
16
20
21using v2::unpack_reference_func;
22
23using v2::unpack_error;
24using v2::parse_error;
25using v2::insufficient_bytes;
26using v2::size_overflow;
27using v2::array_size_overflow;
28using v2::map_size_overflow;
29using v2::str_size_overflow;
30using v2::bin_size_overflow;
31using v2::ext_size_overflow;
32using v2::depth_size_overflow;
33using v2::unpack_limit;
34
35namespace detail {
36
37using v2::detail::unpack_user;
38
39using v2::detail::unpack_uint8;
40using v2::detail::unpack_uint16;
41using v2::detail::unpack_uint32;
42using v2::detail::unpack_uint64;
43
44using v2::detail::unpack_int8;
45using v2::detail::unpack_int16;
46using v2::detail::unpack_int32;
47using v2::detail::unpack_int64;
48
49using v2::detail::unpack_float;
50using v2::detail::unpack_double;
51
52using v2::detail::unpack_nil;
53
54using v2::detail::unpack_true;
55using v2::detail::unpack_false;
56
57using v2::detail::unpack_array;
58using v2::detail::unpack_array_item;
59using v2::detail::unpack_map;
60using v2::detail::unpack_map_item;
61using v2::detail::unpack_str;
62using v2::detail::unpack_bin;
63using v2::detail::unpack_ext;
64
65using v2::detail::unpack_stack;
66
67using v2::detail::init_count;
68using v2::detail::decr_count;
69using v2::detail::incr_count;
70
71using v2::detail::get_count;
72
73using v2::detail::fix_tag;
74
75using v2::detail::value;
76
77using v2::detail::load;
78
79} // detail
80
81
82using v2::unpacked;
83using v2::unpacker;
84using v2::basic_unpacker;
85
86namespace detail {
87
88using v2::detail::unpack_imp;
89
90} // detail
91
93
106 const char* data, std::size_t len, std::size_t& off, bool& referenced,
107 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
108
110
122 const char* data, std::size_t len, std::size_t& off,
123 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
124
126
138 const char* data, std::size_t len, bool& referenced,
139 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
140
142
153 const char* data, std::size_t len,
154 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
155
156
158
170void unpack(
172 const char* data, std::size_t len, std::size_t& off, bool& referenced,
173 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
174
176
187void unpack(
189 const char* data, std::size_t len, std::size_t& off,
190 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
191
193
204void unpack(
206 const char* data, std::size_t len, bool& referenced,
207 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
208
210
220void unpack(
222 const char* data, std::size_t len,
223 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
224
226
240 msgpack::zone& z,
241 const char* data, std::size_t len, std::size_t& off, bool& referenced,
242 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
243
245
258 msgpack::zone& z,
259 const char* data, std::size_t len, std::size_t& off,
260 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
261
263
276 msgpack::zone& z,
277 const char* data, std::size_t len, bool& referenced,
278 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
279
281
293 msgpack::zone& z,
294 const char* data, std::size_t len,
295 msgpack::unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR, msgpack::unpack_limit const& limit = unpack_limit());
296
297
299} // MSGPACK_API_VERSION_NAMESPACE(v3)
301
302} // namespace msgpack
303
304#endif // MSGPACK_V3_UNPACK_DECL_HPP
The class holds object and zone.
Definition object.hpp:44
Definition unpack_decl.hpp:87
Definition cpp03_zone.hpp:30
Definition adaptor_base.hpp:15
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
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:1396
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
#define MSGPACK_NULLPTR
Definition cpp_config_decl.hpp:85
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66