pack_decl.hpp
Go to the documentation of this file.
//
// MessagePack for C++ serializing routine
//
// Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_V1_PACK_DECL_HPP
#define MSGPACK_V1_PACK_DECL_HPP
#include "msgpack/versioning.hpp"
#include "msgpack/cpp_config.hpp"
#include "msgpack/sysdep.h"
namespace msgpack {
MSGPACK_API_VERSION_NAMESPACE(v1) {
template <typename Stream>
class packer;
template <typename Stream, typename T>
void pack(Stream* s, const T& v);
template <typename Stream, typename T>
void pack(Stream& s, const T& v);
#if MSGPACK_ENDIAN_LITTLE_BYTE
template <typename T>
char take8_8(T d);
template <typename T>
char take8_16(T d);
template <typename T>
char take8_32(T d);
template <typename T>
char take8_64(T d);
#elif MSGPACK_ENDIAN_BIG_BYTE
template <typename T>
char take8_8(T d);
template <typename T>
char take8_16(T d);
template <typename T>
char take8_32(T d);
template <typename T>
char take8_64(T d);
#else
#error msgpack-c supports only big endian and little endian
#endif
} // MSGPACK_API_VERSION_NAMESPACE(v1)
} // namespace msgpack
#endif // MSGPACK_V1_PACK_DECL_HPP
msgpack
Definition: adaptor_base.hpp:15
versioning.hpp
cpp_config.hpp
msgpack::pack
void pack(msgpack::packer< Stream > &o, const T &v)
Definition: object.hpp:1201
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58