MessagePack for C++
Classes | Functions | Variables
msgpack::detail Namespace Reference

Classes

struct  all_of_imp
 
struct  any_of_imp
 
struct  bool_pack
 
struct  packer_serializer
 
class  unpack_user
 
struct  unpack_array
 
struct  unpack_map
 
class  unpack_stack
 
struct  value
 
struct  value< fix_tag >
 
class  context
 
struct  fix_tag
 
class  create_object_visitor
 
struct  parse_helper
 

Functions

template<std::size_t N>
void check_container_size (std::size_t size)
 
template<>
void check_container_size< 4 > (std::size_t)
 
template<std::size_t N>
void check_container_size_for_ext (std::size_t size)
 
template<>
void check_container_size_for_ext< 4 > (std::size_t size)
 
template<std::size_t N>
std::size_t add_ext_type_size (std::size_t size)
 
template<>
std::size_t add_ext_type_size< 4 > (std::size_t size)
 
void unpack_uint8 (uint8_t d, msgpack::object &o)
 
void unpack_uint16 (uint16_t d, msgpack::object &o)
 
void unpack_uint32 (uint32_t d, msgpack::object &o)
 
void unpack_uint64 (uint64_t d, msgpack::object &o)
 
void unpack_int8 (int8_t d, msgpack::object &o)
 
void unpack_int16 (int16_t d, msgpack::object &o)
 
void unpack_int32 (int32_t d, msgpack::object &o)
 
void unpack_int64 (int64_t d, msgpack::object &o)
 
void unpack_float (float d, msgpack::object &o)
 
void unpack_double (double d, msgpack::object &o)
 
void unpack_nil (msgpack::object &o)
 
void unpack_true (msgpack::object &o)
 
void unpack_false (msgpack::object &o)
 
void unpack_array_item (msgpack::object &c, msgpack::object const &o)
 
void unpack_map_item (msgpack::object &c, msgpack::object const &k, msgpack::object const &v)
 
void unpack_str (unpack_user &u, const char *p, uint32_t l, msgpack::object &o)
 
void unpack_bin (unpack_user &u, const char *p, uint32_t l, msgpack::object &o)
 
void unpack_ext (unpack_user &u, const char *p, std::size_t l, msgpack::object &o)
 
void init_count (void *buffer)
 
void decr_count (void *buffer)
 
void incr_count (void *buffer)
 
std::atomic< unsigned int > const & get_count (void *buffer)
 
template<typename T >
msgpack::enable_if< sizeof(T)==sizeof(fix_tag)>::type load (uint32_t &dst, const char *n)
 
template<typename T >
msgpack::enable_if< sizeof(T)==1 >::type load (T &dst, const char *n)
 
template<typename T >
msgpack::enable_if< sizeof(T)==2 >::type load (T &dst, const char *n)
 
template<typename T >
msgpack::enable_if< sizeof(T)==4 >::type load (T &dst, const char *n)
 
template<typename T >
msgpack::enable_if< sizeof(T)==8 >::type load (T &dst, const char *n)
 
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())
 
template<typename Visitor >
parse_return parse_imp (const char *data, size_t len, size_t &off, Visitor &v)
 

Variables

std::size_t const packer_max_buffer_size = 9
 

Function Documentation

◆ add_ext_type_size()

template<std::size_t N>
std::size_t msgpack::detail::add_ext_type_size ( std::size_t  size)
inline

References msgpack::type::size().

◆ add_ext_type_size< 4 >()

template<>
std::size_t msgpack::detail::add_ext_type_size< 4 > ( std::size_t  size)
inline

References msgpack::type::size().

◆ check_container_size()

template<std::size_t N>
void msgpack::detail::check_container_size ( std::size_t  size)
inline

References msgpack::type::size().

◆ check_container_size< 4 >()

template<>
void msgpack::detail::check_container_size< 4 > ( std::size_t  )
inline

◆ check_container_size_for_ext()

template<std::size_t N>
void msgpack::detail::check_container_size_for_ext ( std::size_t  size)
inline

References msgpack::type::size().

◆ check_container_size_for_ext< 4 >()

template<>
void msgpack::detail::check_container_size_for_ext< 4 > ( std::size_t  size)
inline

References msgpack::type::size().

◆ decr_count()

void msgpack::detail::decr_count ( void *  buffer)
inline

◆ get_count()

std::atomic< unsigned int > const & msgpack::detail::get_count ( void *  buffer)
inline

◆ incr_count()

void msgpack::detail::incr_count ( void *  buffer)
inline

◆ init_count()

void msgpack::detail::init_count ( void *  buffer)
inline

◆ load() [1/5]

template<typename T >
msgpack::enable_if< sizeof(T)==1 >::type msgpack::detail::load ( T &  dst,
const char *  n 
)
inline

◆ load() [2/5]

template<typename T >
msgpack::enable_if< sizeof(T)==2 >::type msgpack::detail::load ( T &  dst,
const char *  n 
)
inline

References _msgpack_load16.

◆ load() [3/5]

template<typename T >
msgpack::enable_if< sizeof(T)==4 >::type msgpack::detail::load ( T &  dst,
const char *  n 
)
inline

References _msgpack_load32.

◆ load() [4/5]

template<typename T >
msgpack::enable_if< sizeof(T)==8 >::type msgpack::detail::load ( T &  dst,
const char *  n 
)
inline

References _msgpack_load64.

◆ load() [5/5]

template<typename T >
msgpack::enable_if< sizeof(T)==sizeof(fix_tag)>::type msgpack::detail::load ( uint32_t &  dst,
const char *  n 
)
inline

◆ parse_imp()

template<typename Visitor >
parse_return msgpack::detail::parse_imp ( const char *  data,
size_t  len,
size_t &  off,
Visitor &  v 
)
inline

◆ unpack_array_item()

void msgpack::detail::unpack_array_item ( msgpack::object c,
msgpack::object const &  o 
)
inline

◆ unpack_bin()

void msgpack::detail::unpack_bin ( unpack_user u,
const char *  p,
uint32_t  l,
msgpack::object o 
)
inline

◆ unpack_double()

void msgpack::detail::unpack_double ( double  d,
msgpack::object o 
)
inline

◆ unpack_ext()

void msgpack::detail::unpack_ext ( unpack_user u,
const char *  p,
std::size_t  l,
msgpack::object o 
)
inline

◆ unpack_false()

void msgpack::detail::unpack_false ( msgpack::object o)
inline

◆ unpack_float()

void msgpack::detail::unpack_float ( float  d,
msgpack::object o 
)
inline

◆ unpack_imp()

parse_return msgpack::detail::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() 
)
inline

◆ unpack_int16()

void msgpack::detail::unpack_int16 ( int16_t  d,
msgpack::object o 
)
inline

◆ unpack_int32()

void msgpack::detail::unpack_int32 ( int32_t  d,
msgpack::object o 
)
inline

◆ unpack_int64()

void msgpack::detail::unpack_int64 ( int64_t  d,
msgpack::object o 
)
inline

◆ unpack_int8()

void msgpack::detail::unpack_int8 ( int8_t  d,
msgpack::object o 
)
inline

◆ unpack_map_item()

void msgpack::detail::unpack_map_item ( msgpack::object c,
msgpack::object const &  k,
msgpack::object const &  v 
)
inline

◆ unpack_nil()

void msgpack::detail::unpack_nil ( msgpack::object o)
inline

◆ unpack_str()

void msgpack::detail::unpack_str ( unpack_user u,
const char *  p,
uint32_t  l,
msgpack::object o 
)
inline

◆ unpack_true()

void msgpack::detail::unpack_true ( msgpack::object o)
inline

◆ unpack_uint16()

void msgpack::detail::unpack_uint16 ( uint16_t  d,
msgpack::object o 
)
inline

◆ unpack_uint32()

void msgpack::detail::unpack_uint32 ( uint32_t  d,
msgpack::object o 
)
inline

◆ unpack_uint64()

void msgpack::detail::unpack_uint64 ( uint64_t  d,
msgpack::object o 
)
inline

◆ unpack_uint8()

void msgpack::detail::unpack_uint8 ( uint8_t  d,
msgpack::object o 
)
inline

Variable Documentation

◆ packer_max_buffer_size

std::size_t const msgpack::detail::packer_max_buffer_size = 9