docs: def getsize(o_file):
      """
      get the size, either by seeeking to the end.
      """
      startpos = o_file.tell()
      o_file.seek(0)
      o_file.seek(0, SEEK_END)
      size = o_file.tell()
      o_file.seek(startpos)
      return size