C++ Endian library