import struct


def is_little_endian(endian):
    """ Determine whether the give endian is little or not on the host machine. """
    if endian == '<':
        return True

    return struct.pack(endian + 'H', 0x00FF) == struct.pack('<H', 0x00FF)