def _parse_eoc_segment(self, fptr):
offset = fptr.tell() - <NUM_LIT:2><EOL>length = <NUM_LIT:0><EOL>return EOCsegment(length, offset)<EOL>
Parse the EOC (end-of-codestream) marker segment.

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

        Returns
        -------
        EOCSegment
            The current EOC segment.