def _parse_coc_segment(self, fptr):
kwargs = {}<EOL>offset = fptr.tell() - <NUM_LIT:2><EOL>kwargs['<STR_LIT>'] = offset<EOL>read_buffer = fptr.read(<NUM_LIT:2>)<EOL>length, = struct.unpack('<STR_LIT>', read_buffer)<EOL>kwargs['<STR_LIT>'] = length<EOL>fmt = '<STR_LIT>' if self._csiz <= <NUM_LIT:255> else '<STR_LIT>'<EOL>nbytes = <NUM_LIT:1> if self._csiz <= <NUM_LIT:255> else <NUM_LIT:2><EOL>read_buffer = fptr.read(nbytes)<EOL>ccoc, = struct.unpack(fmt, read_buffer)<EOL>read_buffer = fptr.read(<NUM_LIT:1>)<EOL>scoc, = struct.unpack('<STR_LIT>', read_buffer)<EOL>numbytes = offset + <NUM_LIT:2> + length - fptr.tell()<EOL>read_buffer = fptr.read(numbytes)<EOL>spcoc = np.frombuffer(read_buffer, dtype=np.uint8)<EOL>spcoc = spcoc<EOL>return COCsegment(ccoc, scoc, spcoc, length, offset)<EOL>
Parse the COC marker segment.

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

        Returns
        -------
        COCSegment
            The current COC segment.