Go to the documentation of this file.
10 #ifndef MSGPACK_V1_TYPE_CARRAY_BYTE_HPP
11 #define MSGPACK_V1_TYPE_CARRAY_BYTE_HPP
13 #if __cplusplus >= 201703
30 template <std::
size_t N>
51 template <std::
size_t N>
52 struct pack<std::byte[N]> {
53 template <
typename Stream>
55 std::byte
const* p = v;
63 template <std::
size_t N>
64 struct pack<const std::byte[N]> {
65 template <
typename Stream>
67 std::byte
const* p = v;
75 template <std::
size_t N>
76 struct object_with_zone<std::byte[N]> {
83 std::memcpy(ptr, v,
size);
87 template <std::
size_t N>
88 struct object_with_zone<const std::byte[N]> {
95 std::memcpy(ptr, v,
size);
107 #endif // __cplusplus >= 201703
109 #endif // MSGPACK_V1_TYPE_CARRAY_BYTE_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:15
#define MSGPACK_ZONE_ALIGNOF(type)
Definition: cpp03_zone_decl.hpp:30
const char * ptr
Definition: object_fwd.hpp:34
@ BIN
Definition: object_fwd_decl.hpp:40
uint32_t size
Definition: object_fwd.hpp:38
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
union_type via
Definition: object_fwd.hpp:93
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:1194
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1201
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
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, T const &v) const
Definition: object.hpp:650
msgpack::object const & operator()(msgpack::object const &o, T &v) const
Definition: object.hpp:641
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
msgpack::zone & zone
Definition: object.hpp:37
packer< Stream > & pack_bin(uint32_t l)
Packing bin header and length.
Definition: pack.hpp:1290
packer< Stream > & pack_bin_body(const char *b, uint32_t l)
Packing bin body.
Definition: pack.hpp:1309
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::with_zone &o, T const &v) const
Definition: object.hpp:657