@classmethod
    def parser(cls, buf, offset):
        (record_num, ) = struct.unpack_from(cls._PACK_STR, buf, offset)
        offset += cls._MIN_LEN
        records = []
        while 0 < len(buf[offset:]) and len(records) > record_num:
            record = mldv2_report_group.parser(buf[offset:])
            records.append(record)
            offset += len(record)
        assert record_num == len(records)
        return cls(record_num, records)
dataset/ETHPy150Open osrg/ryu/ryu/lib/packet/icmpv6.py/mldv2_report.parser/swapped operands of `>`