def _parse_qcd_segment(self, fptr):
offset = fptr.tell() - <NUM_LIT:2><EOL>read_buffer = fptr.read(<NUM_LIT:3>)<EOL>length, sqcd = struct.unpack('<STR_LIT>', read_buffer)<EOL>spqcd = fptr.read(length - <NUM_LIT:3>)<EOL>return QCDsegment(sqcd, spqcd, length, offset)<EOL>
Parse the QCD segment.

        Parameters
        ----------
        fptr : file
            Open file object.

        Returns
        -------
        QCDSegment
            The current QCD segment.