12 #include "datatypes.h" 16 BEGIN_NAMESPACE_DATATYPES
25 static T byteSwap(T&& value);
27 static bool isLittleEndian();
30 template <
size_t size>
31 static void sizedByteSwap(uint8_t* data);
35 T ByteHelper::byteSwap(T&& value)
37 sizedByteSwap<sizeof(T)>(
reinterpret_cast<uint8_t*
>(&value));
41 END_NAMESPACE_DATATYPES
The class ByteHelper implements functions for handling bytes.
Definition: bytehelper.h:21