def parse_multiple_rpcs(cls, record_data):
        """Parse record_data into multiple error checking rpcs."""

        rpcs = []

        while len(record_data) > 0:
            total_length, record_type = struct.unpack_from("<LB3x", record_data)
            if record_type != SendErrorCheckingRPCRecord.RecordType:
                raise ArgumentError("Record set contains a record that is not an error checking RPC",
                                    record_type=record_type)

            record_contents = record_data[8: total_length]
            parsed_rpc = cls._parse_rpc_info(record_contents)
            rpcs.append(parsed_rpc)

            record_data = record_data[total_length:]

        return rpcs
def parse_multiple_rpcs ( cls , record_data ) : rpcs = [ ] while len ( record_data ) > 0 : total_length , record_type = struct . unpack_from ( "<LB3x" , record_data ) if record_type != SendErrorCheckingRPCRecord . RecordType : raise ArgumentError ( "Record set contains a record that is not an error checking RPC" , record_type = record_type ) record_contents = record_data [ 8 : total_length ] parsed_rpc = cls . _parse_rpc_info ( record_contents ) rpcs . append ( parsed_rpc ) record_data = record_data [ total_length : ] return rpcs
Parse record_data into multiple error checking rpcs.