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);
The class template that supports continuous packing.
Definition: pack.hpp:33
packer< Stream > & pack_str_body(const char *b, uint32_t l)
Packing str body.
Definition: pack.hpp:1255
packer< Stream > & pack_str(uint32_t l)
Packing str header and length.
Definition: pack.hpp:1232
void * allocate_align(size_t size, size_t align=MSGPACK_ZONE_ALIGN)
Definition: cpp03_zone.hpp:256
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
@ STR
Definition: object_fwd_decl.hpp:38
Definition: adaptor_base.hpp:15
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
void operator()(msgpack::object &o, char *v) const
Definition: char_ptr.hpp:79
void operator()(msgpack::object &o, const char *v) const
Definition: char_ptr.hpp:53
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
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:38
packer< Stream > & operator()(packer< Stream > &o, char *v) const
Definition: char_ptr.hpp:65
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const char *v) const
Definition: char_ptr.hpp:31
Definition: adaptor_base.hpp:32
Definition: object.hpp:35
msgpack::zone & zone
Definition: object.hpp:37
const char * ptr
Definition: object_fwd.hpp:34
uint32_t size
Definition: object_fwd.hpp:33
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
union_type via
Definition: object_fwd.hpp:93
msgpack::type::object_type type
Definition: object_fwd.hpp:92
msgpack::object_str str
Definition: object_fwd.hpp:87
#define MSGPACK_ZONE_ALIGNOF(type)
Definition: cpp03_zone_decl.hpp:30
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66