pack_decl.hpp 934 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include "msgpack/v2/pack_decl.hpp"
  13. namespace msgpack {
  14. /// @cond
  15. MSGPACK_API_VERSION_NAMESPACE(v3) {
  16. /// @endcond
  17. using v2::packer;
  18. using v2::pack;
  19. #if MSGPACK_ENDIAN_LITTLE_BYTE
  20. using v2::take8_8;
  21. using v2::take8_16;
  22. using v2::take8_32;
  23. using v2::take8_64;
  24. #elif MSGPACK_ENDIAN_BIG_BYTE
  25. using v2::take8_8;
  26. using v2::take8_16;
  27. using v2::take8_32;
  28. using v2::take8_64;
  29. #else
  30. #error msgpack-c supports only big endian and little endian
  31. #endif
  32. /// @cond
  33. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  34. /// @endcond
  35. } // namespace msgpack
  36. #endif // MSGPACK_V3_PACK_DECL_HPP