Simple functions that can reverse endianness of struct members