10 #ifndef MSGPACK_V1_TYPE_BYTE_HPP
11 #define MSGPACK_V1_TYPE_BYTE_HPP
15 #if MSGPACK_CPP_VERSION >= 201703
36 v =
static_cast<std::byte
>(type::detail::convert_integer<unsigned char>(o));
42 struct pack<std::byte> {
43 template <
typename Stream>
51 struct object<std::byte> {
54 o.
via.
u64 =
static_cast<unsigned char>(v);
59 struct object_with_zone<std::byte> {
The class template that supports continuous packing.
Definition: pack.hpp:33
packer< Stream > & pack_unsigned_char(unsigned char d)
Packing unsigned char.
Definition: pack.hpp:999
@ POSITIVE_INTEGER
Definition: object_fwd_decl.hpp:30
Definition: adaptor_base.hpp:15
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1180
void convert(T &v, msgpack::object const &o)
Definition: object.hpp:1173
msgpack::object const & operator()(msgpack::object const &o, T &v) const
Definition: object.hpp:641
void operator()(msgpack::object::with_zone &o, T const &v) const
Definition: object.hpp:657
void operator()(msgpack::object &o, T const &v) const
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, T const &v) const
Definition: object.hpp:650
Definition: object.hpp:35
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
uint64_t u64
Definition: object_fwd.hpp:78
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66