c++ header library for manipulating endianness