record endianness in binary data