Go to the documentation of this file.
10 #ifndef MSGPACK_V1_TYPE_BYTE_HPP
11 #define MSGPACK_V1_TYPE_BYTE_HPP
13 #if __cplusplus >= 201703
34 v =
static_cast<std::byte
>(type::detail::convert_integer<unsigned char>(o));
40 struct pack<std::byte> {
41 template <
typename Stream>
49 struct object<std::byte> {
52 o.
via.
u64 =
static_cast<unsigned char>(v);
57 struct object_with_zone<std::byte> {
72 #endif // __cplusplus >= 201703
74 #endif // MSGPACK_V1_TYPE_BYTE_HPP
The class template that supports continuous packing.
Definition: adaptor_base_decl.hpp:24
Definition: adaptor_base.hpp:15
void operator()(msgpack::object &o, T const &v) const
#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
uint64_t u64
Definition: object_fwd.hpp:78
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, T const &v) const
Definition: object.hpp:650
packer< Stream > & pack_unsigned_char(unsigned char d)
Packing unsigned char.
Definition: pack.hpp:999
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
Definition: object.hpp:35
msgpack::type::object_type type
Definition: object_fwd.hpp:92
@ POSITIVE_INTEGER
Definition: object_fwd_decl.hpp:31
void operator()(msgpack::object::with_zone &o, T const &v) const
Definition: object.hpp:657