10 #ifndef MSGPACK_V1_TYPE_CHAR_PTR_HPP 11 #define MSGPACK_V1_TYPE_CHAR_PTR_HPP 30 template <
typename Stream>
47 std::memcpy(ptr, v, size);
64 template <
typename Stream>
66 return o << static_cast<const char*>(v);
73 o << static_cast<const char*>(v);
80 o << static_cast<const char*>(v);
92 #endif // MSGPACK_V1_TYPE_CHAR_PTR_HPP Definition: object_fwd_decl.hpp:39
void * allocate_align(size_t size, size_t align=MSGPACK_ZONE_ALIGN)
Definition: cpp03_zone.hpp:236
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
union_type via
Definition: object_fwd.hpp:93
packer< Stream > & operator()(packer< Stream > &o, char *v) const
Definition: char_ptr.hpp:65
msgpack::zone & zone
Definition: object.hpp:36
Definition: adaptor_base.hpp:15
const char * ptr
Definition: object_fwd.hpp:34
Definition: object.hpp:34
packer< Stream > & pack_str_body(const char *b, uint32_t l)
Packing str body.
Definition: pack.hpp:1220
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const char *v) const
Definition: char_ptr.hpp:31
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:32
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
msgpack::object_str str
Definition: object_fwd.hpp:87
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
msgpack::type::object_type type
Definition: object_fwd.hpp:92
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
uint32_t size
Definition: object_fwd.hpp:33
Definition: adaptor_base.hpp:38
The class template that supports continuous packing.
Definition: adaptor_base_decl.hpp:24
void operator()(msgpack::object &o, char *v) const
Definition: char_ptr.hpp:79
void operator()(msgpack::object::with_zone &o, char *v) const
Definition: char_ptr.hpp:72
void operator()(msgpack::object::with_zone &o, const char *v) const
Definition: char_ptr.hpp:41
packer< Stream > & pack_str(uint32_t l)
Packing str header and length.
Definition: pack.hpp:1197
void operator()(msgpack::object &o, const char *v) const
Definition: char_ptr.hpp:53