9 #ifndef _05d00816_25d0_41d1_9768_afd39f0503da 10 #define _05d00816_25d0_41d1_9768_afd39f0503da 12 #include <boost/detail/endian.hpp> 15 auto source = reinterpret_cast<char const *>(&value); \ 16 auto const end = source + sizeof(value); \ 18 auto destination = reinterpret_cast<char *>(&result) + sizeof(result) - 1; \ 19 while(source != end) \ 21 *destination = *source; \ 29 enum class ByteOrdering
36 T host_to_big_endian(T
const & value)
38 #ifdef BOOST_LITTLE_ENDIAN 48 T host_to_little_endian(T
const & value)
50 #ifdef BOOST_BIG_ENDIAN 60 T big_endian_to_host(T
const & value)
62 #ifdef BOOST_LITTLE_ENDIAN 72 T little_endian_to_host(T
const & value)
74 #ifdef BOOST_BIG_ENDIAN 87 #endif // _05d00816_25d0_41d1_9768_afd39f0503da Definition: Association.cpp:39