code: def _parse_eoc_segment(self, fptr):
          
          offset = fptr.tell() - 2
          length = 0
  
          return EOCsegment(length, offset)
docs: Parse the EOC (end-of-codestream) marker segment.
  
          Parameters
          ----------
          fptr : file
              Open file object.
  
          Returns
          -------
          EOCSegment
              The current EOC segment.