code: def _parse_qcd_segment(self, fptr):
          
          offset = fptr.tell() - 2
  
          read_buffer = fptr.read(3)
          length, sqcd = struct.unpack('>HB', read_buffer)
          spqcd = fptr.read(length - 3)
  
          return QCDsegment(sqcd, spqcd, length, offset)
docs: Parse the QCD segment.
  
          Parameters
          ----------
          fptr : file
              Open file object.
  
          Returns
          -------
          QCDSegment
              The current QCD segment.