@classmethod<EOL><INDENT>def _parse_qcc_segment(cls, fptr):<DEDENT>
offset = fptr.tell() - <NUM_LIT:2><EOL>read_buffer = fptr.read(<NUM_LIT:2>)<EOL>length, = struct.unpack('<STR_LIT>', read_buffer)<EOL>read_buffer = fptr.read(length - <NUM_LIT:2>)<EOL>fmt = '<STR_LIT>' if cls._csiz > <NUM_LIT> else '<STR_LIT>'<EOL>mantissa_exponent_offset = <NUM_LIT:3> if cls._csiz > <NUM_LIT> else <NUM_LIT:2><EOL>cqcc, sqcc = struct.unpack_from(fmt, read_buffer)<EOL>if cqcc >= cls._csiz:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = msg.format(invalid_comp_no=cqcc, valid_comp_no=cls._csiz)<EOL>warnings.warn(msg, UserWarning)<EOL><DEDENT>spqcc = read_buffer[mantissa_exponent_offset:]<EOL>return QCCsegment(cqcc, sqcc, spqcc, length, offset)<EOL>
Parse the QCC segment.

        Parameters
        ----------
        fptr : file object
            The file to parse.

        Returns
        -------
        QCCSegment
            The current QCC segment.