MessagePack for C++
include
msgpack
v3
pack_decl.hpp
Go to the documentation of this file.
1
//
2
// MessagePack for C++ serializing routine
3
//
4
// Copyright (C) 2008-2018 FURUHASHI Sadayuki and KONDO Takatoshi
5
//
6
// Distributed under the Boost Software License, Version 1.0.
7
// (See accompanying file LICENSE_1_0.txt or copy at
8
// http://www.boost.org/LICENSE_1_0.txt)
9
//
10
#ifndef MSGPACK_V3_PACK_DECL_HPP
11
#define MSGPACK_V3_PACK_DECL_HPP
12
13
#include "
msgpack/v2/pack_decl.hpp
"
14
15
namespace
msgpack
{
16
18
MSGPACK_API_VERSION_NAMESPACE
(v3) {
20
21
using
v2::packer;
22
23
using
v2::pack
;
24
25
#if MSGPACK_ENDIAN_LITTLE_BYTE
26
27
using
v2::take8_8;
28
29
using
v2::take8_16;
30
31
using
v2::take8_32;
32
33
using
v2::take8_64;
34
35
#elif MSGPACK_ENDIAN_BIG_BYTE
36
37
using
v2::take8_8;
38
39
using
v2::take8_16;
40
41
using
v2::take8_32;
42
43
using
v2::take8_64;
44
45
#else
46
#error msgpack-c supports only big endian and little endian
47
#endif
48
50
}
// MSGPACK_API_VERSION_NAMESPACE(v3)
52
53
}
// namespace msgpack
54
55
#endif // MSGPACK_V3_PACK_DECL_HPP
msgpack
Definition:
adaptor_base.hpp:15
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition:
versioning.hpp:58
msgpack::pack
void pack(msgpack::packer< Stream > &o, const T &v)
Definition:
object.hpp:1201
pack_decl.hpp
Generated by
1.8.17