@staticmethod
def parse_operator_flag(data):
    """
        The operator byte is encoded as:
        0    1   2   3   4  5   6   7
        +---+---+---+---+---+---+---+---+
        |EOL|AND|  LEN  |RES|LT |GT |EQ |
        +---+---+---+---+---+---+---+---+
        """
    bit_list = []
    for i in range(8):
        bit_list.append(data >> i & 1)
    bit_list.reverse()
    result = {'EOL': bit_list[0], 'AND': bit_list[1], 'LEN': 1 << bit_list[
        2] * 2 + bit_list[3], 'LT': bit_list[5], 'GT': bit_list[6], 'EQ':
        bit_list[7]}
    return result
