original_docstring: Seek the game file.
          Returns the final absolute position in the game file.
          The operation is clamped to not escape the game file boundaries.
          
docstring: Seek the game file.
  Returns the final absolute position in the game file.
  The operation is clamped to not escape the game file boundaries.
docstring_tokens: Seek the game file . Returns the final absolute position in the game file . The operation is clamped to not escape the game file boundaries .
code: def seek(self, offset, whence=io.SEEK_SET):
          """Seek the game file.
          Returns the final absolute position in the game file.
          The operation is clamped to not escape the game file boundaries.
          """
          abs_pos = None
  
          if whence == io.SEEK_SET:
              abs_pos = self._clamp_pos(offset + self.start)
          elif whence == io.SEEK_CUR:
              abs_pos = self._clamp_pos(offset + self.dat_file.tell())
          elif whence == io.SEEK_END:
              abs_pos = self._clamp_pos(offset + self.end)
          else:
              raise ValueError('Invalid seek whence: {}'.format(whence))
  
          self.dat_file.seek(abs_pos, io.SEEK_SET)
          return abs_pos - self.start
code_tokens: def seek ( self , offset , whence = io . SEEK_SET ) : abs_pos = None if whence == io . SEEK_SET : abs_pos = self . _clamp_pos ( offset + self . start ) elif whence == io . SEEK_CUR : abs_pos = self . _clamp_pos ( offset + self . dat_file . tell ( ) ) elif whence == io . SEEK_END : abs_pos = self . _clamp_pos ( offset + self . end ) else : raise ValueError ( 'Invalid seek whence: {}' . format ( whence ) ) self . dat_file . seek ( abs_pos , io . SEEK_SET ) return abs_pos - self . start
short_docstring: Seek the game file.
short_docstring_tokens: Seek the game file .
comment: """Seek the game file.
          Returns the final absolute position in the game file.
          The operation is clamped to not escape the game file boundaries.
          """