def get_byte_order(ei_data):
    """Get the endian-ness of the header."""
    if ei_data == b'\x01':
        return 'little'
    elif ei_data == b'\x02':
        return 'big'
    else:
        raise ValueError