11 #include <mrpt/config.h> 56 #if MRPT_IS_BIG_ENDIAN 67 typename underlying_t =
typename std::underlying_type<enum_t>::type>
70 underlying_t v_out =
static_cast<underlying_t
>(v);
72 v =
static_cast<enum_t
>(v_out);
void reverseBytes(const T &v_in, T &v_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
void reverseBytesInPlace(bool &v_in_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
T toNativeEndianness(const T &v_in)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void reverseBytesInPlace_enum(enum_t &v)