10#ifndef MSGPACK_V1_TYPE_CPP11_TIMESPEC_HPP
11#define MSGPACK_V1_TYPE_CPP11_TIMESPEC_HPP
33 switch(
o.via.ext.size) {
63 template <
typename Stream>
65 if ((
static_cast<uint64_t>(
v.tv_sec) >> 34) == 0) {
67 if ((
data64 & 0xffffffff00000000L) == 0) {
73 o.pack_ext_body(
buf, 4);
80 o.pack_ext_body(
buf, 8);
89 o.pack_ext_body(
buf, 12);
98 if ((
static_cast<uint64_t>(
v.tv_sec) >> 34) == 0) {
100 if ((
data64 & 0xffffffff00000000L) == 0) {
102 o.type = msgpack::type::EXT;
104 char*
p =
static_cast<char*
>(
o.zone.allocate_no_align(
o.via.ext.size + 1));
105 p[0] =
static_cast<char>(-1);
112 o.type = msgpack::type::EXT;
114 char*
p =
static_cast<char*
>(
o.zone.allocate_no_align(
o.via.ext.size + 1));
115 p[0] =
static_cast<char>(-1);
122 o.type = msgpack::type::EXT;
124 char*
p =
static_cast<char*
>(
o.zone.allocate_no_align(
o.via.ext.size + 1));
125 p[0] =
static_cast<char>(-1);
The class template that supports continuous packing.
Definition pack.hpp:33
Definition object_fwd.hpp:231
Definition adaptor_base.hpp:15
msgpack::object const & operator()(msgpack::object const &o, timespec &v) const
Definition timespec.hpp:30
Definition adaptor_base.hpp:27
void operator()(msgpack::object::with_zone &o, const timespec &v) const
Definition timespec.hpp:97
Definition adaptor_base.hpp:43
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const timespec &v) const
Definition timespec.hpp:64
Definition adaptor_base.hpp:32
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
#define _msgpack_load64(cast, from, to)
Definition sysdep.hpp:180
#define _msgpack_store32(to, num)
Definition sysdep.hpp:187
#define _msgpack_store64(to, num)
Definition sysdep.hpp:189
#define _msgpack_load32(cast, from, to)
Definition sysdep.hpp:176
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66