10 #ifndef MSGPACK_V1_TYPE_FIXINT_HPP
11 #define MSGPACK_V1_TYPE_FIXINT_HPP
29 operator T()
const {
return value; }
31 T
get()
const {
return value; }
44 { v = type::detail::convert_integer<int8_t>(o);
return o; }
50 { v = type::detail::convert_integer<int16_t>(o);
return o; }
56 { v = type::detail::convert_integer<int32_t>(o);
return o; }
62 { v = type::detail::convert_integer<int64_t>(o);
return o; }
69 { v = type::detail::convert_integer<uint8_t>(o);
return o; }
75 { v = type::detail::convert_integer<uint16_t>(o);
return o; }
81 { v = type::detail::convert_integer<uint32_t>(o);
return o; }
87 { v = type::detail::convert_integer<uint64_t>(o);
return o; }
92 template <
typename Stream>
99 template <
typename Stream>
106 template <
typename Stream>
113 template <
typename Stream>
121 template <
typename Stream>
128 template <
typename Stream>
135 template <
typename Stream>
142 template <
typename Stream>
156 o.
via.
u64 =
static_cast<uint64_t
>(v.
get());
170 o.
via.
u64 =
static_cast<uint64_t
>(v.
get());
184 o.
via.
u64 =
static_cast<uint64_t
>(v.
get());
198 o.
via.
u64 =
static_cast<uint64_t
>(v.
get());
The class template that supports continuous packing.
Definition: pack.hpp:33
packer< Stream > & pack_fix_int64(int64_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:822
packer< Stream > & pack_fix_uint64(uint64_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:787
packer< Stream > & pack_fix_int8(int8_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:796
packer< Stream > & pack_fix_int32(int32_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:813
packer< Stream > & pack_fix_uint16(uint16_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:769
packer< Stream > & pack_fix_uint32(uint32_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:778
packer< Stream > & pack_fix_int16(int16_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:804
packer< Stream > & pack_fix_uint8(uint8_t d)
Packing uint8 (fixed packed type).
Definition: pack.hpp:761
fix_int< int8_t > fix_int8
Definition: fixint_decl.hpp:33
fix_int< uint64_t > fix_uint64
Definition: fixint_decl.hpp:31
fix_int< uint8_t > fix_uint8
Definition: fixint_decl.hpp:26
fix_int< int32_t > fix_int32
Definition: fixint_decl.hpp:35
fix_int< int16_t > fix_int16
Definition: fixint_decl.hpp:34
fix_int< int64_t > fix_int64
Definition: fixint_decl.hpp:36
fix_int< uint32_t > fix_uint32
Definition: fixint_decl.hpp:30
@ POSITIVE_INTEGER
Definition: object_fwd_decl.hpp:30
@ NEGATIVE_INTEGER
Definition: object_fwd_decl.hpp:31
fix_int< uint16_t > fix_uint16
Definition: fixint_decl.hpp:29
Definition: adaptor_base.hpp:15
msgpack::object const & operator()(msgpack::object const &o, type::fix_int16 &v) const
Definition: fixint.hpp:49
msgpack::object const & operator()(msgpack::object const &o, type::fix_int32 &v) const
Definition: fixint.hpp:55
msgpack::object const & operator()(msgpack::object const &o, type::fix_int64 &v) const
Definition: fixint.hpp:61
msgpack::object const & operator()(msgpack::object const &o, type::fix_int8 &v) const
Definition: fixint.hpp:43
msgpack::object const & operator()(msgpack::object const &o, type::fix_uint16 &v) const
Definition: fixint.hpp:74
msgpack::object const & operator()(msgpack::object const &o, type::fix_uint32 &v) const
Definition: fixint.hpp:80
msgpack::object const & operator()(msgpack::object const &o, type::fix_uint64 &v) const
Definition: fixint.hpp:86
msgpack::object const & operator()(msgpack::object const &o, type::fix_uint8 &v) const
Definition: fixint.hpp:68
Definition: adaptor_base.hpp:27
void operator()(msgpack::object &o, type::fix_int16 v) const
Definition: fixint.hpp:163
void operator()(msgpack::object &o, type::fix_int32 v) const
Definition: fixint.hpp:177
void operator()(msgpack::object &o, type::fix_int64 v) const
Definition: fixint.hpp:191
void operator()(msgpack::object &o, type::fix_int8 v) const
Definition: fixint.hpp:149
void operator()(msgpack::object &o, type::fix_uint16 v) const
Definition: fixint.hpp:213
void operator()(msgpack::object &o, type::fix_uint32 v) const
Definition: fixint.hpp:221
void operator()(msgpack::object &o, type::fix_uint64 v) const
Definition: fixint.hpp:229
void operator()(msgpack::object &o, type::fix_uint8 v) const
Definition: fixint.hpp:205
void operator()(msgpack::object::with_zone &o, type::fix_int16 v) const
Definition: fixint.hpp:244
void operator()(msgpack::object::with_zone &o, type::fix_int32 v) const
Definition: fixint.hpp:251
void operator()(msgpack::object::with_zone &o, type::fix_int64 v) const
Definition: fixint.hpp:258
void operator()(msgpack::object::with_zone &o, type::fix_int8 v) const
Definition: fixint.hpp:237
void operator()(msgpack::object::with_zone &o, type::fix_uint16 v) const
Definition: fixint.hpp:273
void operator()(msgpack::object::with_zone &o, type::fix_uint32 v) const
Definition: fixint.hpp:280
void operator()(msgpack::object::with_zone &o, type::fix_uint64 v) const
Definition: fixint.hpp:287
void operator()(msgpack::object::with_zone &o, type::fix_uint8 v) const
Definition: fixint.hpp:266
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:38
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_int16 &v) const
Definition: fixint.hpp:100
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_int32 &v) const
Definition: fixint.hpp:107
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_int64 &v) const
Definition: fixint.hpp:114
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_int8 &v) const
Definition: fixint.hpp:93
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_uint16 &v) const
Definition: fixint.hpp:129
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_uint32 &v) const
Definition: fixint.hpp:136
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_uint64 &v) const
Definition: fixint.hpp:143
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::fix_uint8 &v) const
Definition: fixint.hpp:122
Definition: adaptor_base.hpp:32
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
Definition: fixint.hpp:24
fix_int(T value)
Definition: fixint.hpp:27
T get() const
Definition: fixint.hpp:31
fix_int()
Definition: fixint.hpp:26
T value_type
Definition: fixint.hpp:25
uint64_t u64
Definition: object_fwd.hpp:78
int64_t i64
Definition: object_fwd.hpp:79
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66