Split up endianness functions into separate header file