Boost:Endian Boost.Endian provides facilities to manipulate the endianness of integers and user-defined types. See also Boost Favorite site Endian Library - 1.59.0