Go to the documentation of this file.
18 #ifndef INCLUDED_UHD_UTILS_BYTESWAP_HPP
19 #define INCLUDED_UHD_UTILS_BYTESWAP_HPP
22 #include <boost/cstdint.hpp>
32 boost::uint16_t
byteswap(boost::uint16_t);
35 boost::uint32_t
byteswap(boost::uint32_t);
38 boost::uint64_t
byteswap(boost::uint64_t);
41 template<
typename T> T
ntohx(T);
44 template<
typename T> T
htonx(T);
47 template<
typename T> T
wtohx(T);
50 template<
typename T> T
htowx(T);
54 #include <uhd/utils/byteswap.ipp>