MessagePack for C++
|
Namespaces | |
adaptor | |
detail | |
type | |
Typedefs | |
template<template< class > class T, class... U> | |
using | all_of = detail::all_of_imp< T< U >::value... > |
template<template< class > class T, class... U> | |
using | any_of = detail::any_of_imp<(T< U >::value)... > |
typedef bool(* | unpack_reference_func) (msgpack::type::object_type type, std::size_t size, void *user_data) |
The type of reference or copy judging function. More... | |
typedef object_handle | unpacked |
Enumerations | |
enum | parse_return { PARSE_SUCCESS = 2 , PARSE_EXTRA_BYTES = 1 , PARSE_CONTINUE = 0 , PARSE_PARSE_ERROR = -1 , PARSE_SUCCESS = 2 , PARSE_EXTRA_BYTES = 1 , PARSE_CONTINUE = 0 , PARSE_PARSE_ERROR = -1 , PARSE_STOP_VISITOR = -2 } |
enum | parse_return { PARSE_SUCCESS = 2 , PARSE_EXTRA_BYTES = 1 , PARSE_CONTINUE = 0 , PARSE_PARSE_ERROR = -1 , PARSE_SUCCESS = 2 , PARSE_EXTRA_BYTES = 1 , PARSE_CONTINUE = 0 , PARSE_PARSE_ERROR = -1 , PARSE_STOP_VISITOR = -2 } |
Functions | |
template<typename T > | |
msgpack::enable_if< !is_array< T >::value, msgpack::object const & >::type | operator>> (msgpack::object const &o, T &v) |
template<typename T , std::size_t N> | |
msgpack::object const & | operator>> (msgpack::object const &o, T(&v)[N]) |
template<typename Stream , typename T > | |
msgpack::enable_if< !is_array< T >::value, msgpack::packer< Stream > & >::type | operator<< (msgpack::packer< Stream > &o, T const &v) |
template<typename Stream , typename T , std::size_t N> | |
msgpack::packer< Stream > & | operator<< (msgpack::packer< Stream > &o, const T(&v)[N]) |
template<typename T > | |
msgpack::enable_if< !is_array< T >::value >::type | operator<< (msgpack::object &o, T const &v) |
template<typename T , std::size_t N> | |
void | operator<< (msgpack::v1::object &o, const T(&v)[N]) |
template<typename T > | |
msgpack::enable_if< !is_array< T >::value >::type | operator<< (msgpack::object::with_zone &o, T const &v) |
template<typename T , std::size_t N> | |
void | operator<< (msgpack::object::with_zone &o, const T(&v)[N]) |
template<typename T , std::size_t N> | |
void | operator<< (msgpack::object &o, const T(&v)[N]) |
template<typename T > | |
uint32_t | checked_get_container_size (T size) |
std::size_t | aligned_size (std::size_t size, std::size_t align) |
msgpack::object_kv * | begin (msgpack::object_map &map) |
const msgpack::object_kv * | begin (const msgpack::object_map &map) |
msgpack::object_kv * | end (msgpack::object_map &map) |
const msgpack::object_kv * | end (const msgpack::object_map &map) |
msgpack::object * | begin (msgpack::object_array &array) |
const msgpack::object * | begin (const msgpack::object_array &array) |
msgpack::object * | end (msgpack::object_array &array) |
const msgpack::object * | end (const msgpack::object_array &array) |
std::size_t | aligned_zone_size (msgpack::object const &obj) |
object_handle | clone (msgpack::object const &obj) |
clone object More... | |
bool | operator== (const msgpack::object &x, const msgpack::object &y) |
template<typename T > | |
bool | operator== (const msgpack::object &x, const T &y) |
bool | operator!= (const msgpack::object &x, const msgpack::object &y) |
template<typename T > | |
bool | operator== (const T &y, const msgpack::object &x) |
template<typename T > | |
bool | operator!= (const msgpack::object &x, const T &y) |
template<typename T > | |
bool | operator!= (const T &y, const msgpack::object &x) |
template<typename T > | |
void | convert (T &v, msgpack::object const &o) |
template<typename Stream , typename T > | |
void | pack (msgpack::packer< Stream > &o, const T &v) |
template<typename Stream , typename T > | |
void | pack_copy (msgpack::packer< Stream > &o, T v) |
template<typename Stream > | |
msgpack::packer< Stream > & | operator<< (msgpack::packer< Stream > &o, const msgpack::object &v) |
template<typename Stream > | |
msgpack::packer< Stream > & | operator<< (msgpack::packer< Stream > &o, const msgpack::object::with_zone &v) |
std::ostream & | operator<< (std::ostream &s, const msgpack::object &v) |
template<typename Stream , typename T > | |
void | pack (Stream *s, const T &v) |
Pack the value as MessagePack format into the stream. More... | |
template<typename Stream , typename T > | |
void | pack (Stream &s, const T &v) |
Pack the value as MessagePack format into the stream. More... | |
msgpack::object_handle | unpack (const char *data, std::size_t len, std::size_t &off, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object_handle | unpack (const char *data, std::size_t len, std::size_t &off, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object_handle | unpack (const char *data, std::size_t len, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object_handle | unpack (const char *data, std::size_t len, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
void | unpack (object_handle &result, const char *data, std::size_t len, std::size_t &off, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
void | unpack (object_handle &result, const char *data, std::size_t len, std::size_t &off, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
void | unpack (object_handle &result, const char *data, std::size_t len, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
void | unpack (object_handle &result, const char *data, std::size_t len, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object | unpack (msgpack::zone &z, const char *data, std::size_t len, std::size_t &off, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object | unpack (msgpack::zone &z, const char *data, std::size_t len, std::size_t &off, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object | unpack (msgpack::zone &z, const char *data, std::size_t len, bool &referenced, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
msgpack::object | unpack (msgpack::zone &z, const char *data, std::size_t len, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. More... | |
void | unpack (object_handle *result, const char *data, std::size_t len, std::size_t *off=MSGPACK_NULLPTR, bool *referenced=MSGPACK_NULLPTR, unpack_reference_func f=MSGPACK_NULLPTR, void *user_data=MSGPACK_NULLPTR, unpack_limit const &limit=unpack_limit()) |
Unpack msgpack::object from a buffer. [obsolete]. More... | |
template<typename Visitor > | |
bool | parse (const char *data, size_t len, size_t &off, Visitor &v) |
Unpack msgpack formatted data via a visitor. More... | |
template<typename Visitor > | |
bool | parse (const char *data, size_t len, Visitor &v) |
Unpack msgpack formatted data via a visitor. More... | |
void | unpack (msgpack::object_handle &result, const char *data, std::size_t len, std::size_t &off, msgpack::v3::unpack_reference_func f, void *user_data, msgpack::unpack_limit const &limit) |
using msgpack::all_of = typedef detail::all_of_imp<T<U>::value...> |
using msgpack::any_of = typedef detail::any_of_imp<(T<U>::value)...> |
typedef bool(* msgpack::unpack_reference_func) (msgpack::type::object_type type, std::size_t size, void *user_data) |
The type of reference or copy judging function.
type | msgpack data type. |
size | msgpack data size. |
user_data | The user_data that is set by msgpack::unpack functions. |
This function is called when unpacking STR, BIN, or EXT.
typedef object_handle msgpack::unpacked |
|
inline |
|
inline |
References msgpack::object_parser::parse().
Referenced by clone().
|
inline |
References msgpack::object_array::ptr.
|
inline |
References msgpack::object_map::ptr.
|
inline |
References msgpack::object_array::ptr.
|
inline |
References msgpack::object_map::ptr.
|
inline |
References msgpack::type::size().
Referenced by msgpack::adaptor::object< const char * >::operator()(), msgpack::adaptor::object< char[N]>::operator()(), msgpack::adaptor::object< const char[N]>::operator()(), msgpack::adaptor::object< std::array< char, N > >::operator()(), msgpack::adaptor::object< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::object< std::string >::operator()(), msgpack::adaptor::object< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::object< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::as< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value &&boost::mpl::fold< T, boost::mpl::bool_< true >, boost::mpl::if_< boost::mpl::or_< boost::mpl::_1, msgpack::has_as< boost::mpl::_2 > >, boost::mpl::bool_< true >, boost::mpl::bool_< false > > >::type::value >::type >::operator()(), msgpack::adaptor::convert< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::object_with_zone< const char * >::operator()(), msgpack::adaptor::object_with_zone< char[N]>::operator()(), msgpack::adaptor::object_with_zone< const char[N]>::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::array_ref< T > >::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::array_ref< T[N]> >::operator()(), msgpack::adaptor::object_with_zone< std::array< char, N > >::operator()(), msgpack::adaptor::object_with_zone< std::array< T, N > >::operator()(), msgpack::adaptor::object_with_zone< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::object_with_zone< std::deque< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::forward_list< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::list< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::map< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::multimap< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::multiset< T, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::set< T, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::string >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_map< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_multimap< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_multiset< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::unordered_set< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< bool, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< T, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< std::wstring >::operator()(), msgpack::adaptor::object_with_zone< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::object_with_zone< T[N]>::operator()(), msgpack::adaptor::object_with_zone< type::assoc_vector< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::object_with_zone< unsigned char[N]>::operator()(), msgpack::adaptor::object_with_zone< const unsigned char[N]>::operator()(), msgpack::adaptor::object_with_zone< std::tuple< Args... > >::operator()(), msgpack::adaptor::pack< const char * >::operator()(), msgpack::adaptor::pack< char[N]>::operator()(), msgpack::adaptor::pack< const char[N]>::operator()(), msgpack::adaptor::pack< msgpack::type::array_ref< T > >::operator()(), msgpack::adaptor::pack< msgpack::type::array_ref< T[N]> >::operator()(), msgpack::adaptor::pack< std::array< char, N > >::operator()(), msgpack::adaptor::pack< std::array< T, N > >::operator()(), msgpack::adaptor::pack< std::array< unsigned char, N > >::operator()(), msgpack::adaptor::pack< std::deque< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::forward_list< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::list< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::map< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::multimap< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::multiset< T, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::set< T, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::string >::operator()(), msgpack::adaptor::pack< std::tuple< Args... > >::operator()(), msgpack::adaptor::pack< std::unordered_map< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_multimap< K, V, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_multiset< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::unordered_set< Key, Hash, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< bool, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< char, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< T, Alloc > >::operator()(), msgpack::adaptor::pack< std::vector< unsigned char, Alloc > >::operator()(), msgpack::adaptor::pack< std::wstring >::operator()(), msgpack::adaptor::pack< T, typename msgpack::enable_if< detail::is_seq_no_pair_no_tuple< T >::value >::type >::operator()(), msgpack::adaptor::pack< T[N]>::operator()(), msgpack::adaptor::pack< type::assoc_vector< K, V, Compare, Alloc > >::operator()(), msgpack::adaptor::pack< unsigned char[N]>::operator()(), and msgpack::adaptor::pack< const unsigned char[N]>::operator()().
|
inline |
clone object
Clone (deep copy) object. The copied object is located on newly allocated zone.
obj | copy source object |
References aligned_zone_size(), MSGPACK_NULLPTR, and msgpack::type::size().
|
inline |
References msgpack::object::convert().
Referenced by msgpack::object::convert(), msgpack::type::detail::convert_integer(), msgpack::adaptor::convert< msgpack::type::tuple< Args... > >::operator()(), msgpack::adaptor::convert< std::tuple< Args... > >::operator()(), msgpack::adaptor::object_with_zone< msgpack::type::tuple< Args... > >::operator()(), and msgpack::adaptor::object_with_zone< std::tuple< Args... > >::operator()().
|
inline |
References msgpack::object_array::ptr, and msgpack::object_array::size.
|
inline |
References msgpack::object_map::ptr, and msgpack::object_map::size.
|
inline |
References msgpack::object_array::ptr, and msgpack::object_array::size.
|
inline |
References msgpack::object_map::ptr, and msgpack::object_map::size.
Referenced by msgpack::adaptor::convert< std::vector< bool, Alloc > >::operator()().
|
inline |
|
inline |
|
inline |
void msgpack::operator<< | ( | msgpack::object & | o, |
const T(&) | v[N] | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
References pack().
|
inline |
|
inline |
|
inline |
Referenced by msgpack::object::object(), and msgpack::packer< Stream >::pack().
|
inline |
|
inline |
References msgpack::object_parser::parse().
|
inline |
References msgpack::object_parser::parse(), and msgpack::object::type.
|
inline |
|
inline |
|
inline |
Referenced by msgpack::object::convert(), and msgpack::define< Type >::msgpack_unpack().
|
inline |
|
inline |
References msgpack::packer< Stream >::pack().
Referenced by msgpack::type::define_array< Args >::msgpack_pack(), msgpack::type::define_map< Args >::msgpack_pack(), msgpack::adaptor::pack< msgpack::type::tuple< Args... > >::operator()(), msgpack::adaptor::pack< std::tuple< Args... > >::operator()(), and operator<<().
|
inline |
Pack the value as MessagePack format into the stream.
Stream | Any type that have a member function Stream write(const char*, size_t s) |
T | Any type that is adapted to MessagePack |
s | Packing destination stream |
v | Packing value |
References msgpack::packer< Stream >::pack().
|
inline |
Pack the value as MessagePack format into the stream.
This function template is left for compatibility. Use void pack(Stream& s, const T& v)
instead of the function template.
Stream | Any type that have a member function Stream write(const char*, size_t s) |
T | Any type that is adapted to MessagePack |
s | The pointer to packing destination stream |
v | Packing value |
References msgpack::packer< Stream >::pack().
|
inline |
bool msgpack::parse | ( | const char * | data, |
size_t | len, | ||
size_t & | off, | ||
Visitor & | v | ||
) |
Unpack msgpack formatted data via a visitor.
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
v | The visitor that satisfies visitor concept. https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_visitor#visitor-concept |
bool msgpack::parse | ( | const char * | data, |
size_t | len, | ||
Visitor & | v | ||
) |
Unpack msgpack formatted data via a visitor.
data | The pointer to the buffer. |
len | The length of the buffer. |
v | The visitor that satisfies visitor concept. https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_visitor#visitor-concept |
|
inline |
Unpack msgpack::object from a buffer.
data | The pointer to the buffer. |
len | The length of the buffer. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References PARSE_CONTINUE, PARSE_EXTRA_BYTES, PARSE_PARSE_ERROR, PARSE_SUCCESS, and msgpack::detail::unpack_imp().
Referenced by msgpack::type::define_array< Args >::msgpack_unpack(), msgpack::type::define_map< Args >::msgpack_unpack(), and unpack().
|
inline |
Unpack msgpack::object from a buffer.
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
data | The pointer to the buffer. |
len | The length of the buffer. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
|
inline |
Unpack msgpack::object from a buffer.
z | The msgpack::zone that is used as a memory of unpacked msgpack objects. |
data | The pointer to the buffer. |
len | The length of the buffer. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
z | The msgpack::zone that is used as a memory of unpacked msgpack objects. |
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References PARSE_CONTINUE, PARSE_EXTRA_BYTES, PARSE_PARSE_ERROR, PARSE_SUCCESS, and msgpack::detail::unpack_imp().
|
inline |
Unpack msgpack::object from a buffer.
z | The msgpack::zone that is used as a memory of unpacked msgpack objects. |
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
z | The msgpack::zone that is used as a memory of unpacked msgpack objects. |
data | The pointer to the buffer. |
len | The length of the buffer. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
result | The object_handle that contains unpacked data. |
data | The pointer to the buffer. |
len | The length of the buffer. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
result | The object_handle that contains unpacked data. |
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References PARSE_CONTINUE, PARSE_EXTRA_BYTES, PARSE_PARSE_ERROR, PARSE_SUCCESS, msgpack::object_handle::set(), msgpack::detail::unpack_imp(), and msgpack::object_handle::zone().
|
inline |
Unpack msgpack::object from a buffer.
result | The object_handle that contains unpacked data. |
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer.
result | The object_handle that contains unpacked data. |
data | The pointer to the buffer. |
len | The length of the buffer. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
References unpack().
|
inline |
Unpack msgpack::object from a buffer. [obsolete].
result | The object_handle that contains unpacked data. |
data | The pointer to the buffer. |
len | The length of the buffer. |
off | The offset position of the buffer. It is read and overwritten. |
referenced | If the unpacked object contains reference of the buffer, then set as true, otherwise false. |
f | A judging function that msgpack::object refer to the buffer. |
user_data | This parameter is passed to f. |
limit | The size limit information of msgpack::object. |
This function is obsolete. Use the reference inteface version of unpack functions instead of the pointer interface version.
References unpack().