Go to the documentation of this file.
10 #ifndef MSGPACK_V1_TYPE_STRING_HPP
11 #define MSGPACK_V1_TYPE_STRING_HPP
48 template <
typename Stream>
75 std::memcpy(ptr, v.data(), v.size());
87 #endif // MSGPACK_V1_TYPE_STRING_HPP
@ STR
Definition: object_fwd_decl.hpp:39
const char * ptr
Definition: object_fwd.hpp:39
The class template that supports continuous packing.
Definition: adaptor_base_decl.hpp:24
void * allocate_align(size_t size, size_t align=MSGPACK_ZONE_ALIGN)
Definition: cpp03_zone.hpp:246
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:15
#define MSGPACK_ZONE_ALIGNOF(type)
Definition: cpp03_zone_decl.hpp:30
const char * ptr
Definition: object_fwd.hpp:34
Definition: adaptor_base.hpp:27
@ BIN
Definition: object_fwd_decl.hpp:40
uint32_t size
Definition: object_fwd.hpp:38
packer< Stream > & pack_str_body(const char *b, uint32_t l)
Packing str body.
Definition: pack.hpp:1220
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
void operator()(msgpack::object::with_zone &o, const std::string &v) const
Definition: string.hpp:69
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::string &v) const
Definition: string.hpp:49
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
union_type via
Definition: object_fwd.hpp:93
Definition: adaptor_base.hpp:38
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
uint32_t size
Definition: object_fwd.hpp:33
msgpack::object_bin bin
Definition: object_fwd.hpp:88
Definition: object_fwd.hpp:236
Definition: adaptor_base.hpp:32
msgpack::object const & operator()(msgpack::object const &o, std::string &v) const
Definition: string.hpp:30
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
msgpack::zone & zone
Definition: object.hpp:37
packer< Stream > & pack_str(uint32_t l)
Packing str header and length.
Definition: pack.hpp:1197
Definition: object.hpp:35
msgpack::type::object_type type
Definition: object_fwd.hpp:92
msgpack::object_str str
Definition: object_fwd.hpp:87
void operator()(msgpack::object &o, const std::string &v) const
Definition: string.hpp:59