in src/azstoragetorch/io.py [0:0]
def seek(self, offset: int, whence: int = os.SEEK_SET, /) -> int:
"""Change the file-like position to a given byte offset.
:param offset: The offset to seek to
:param whence: The reference point for the offset. Accepted values are:
* :py:data:`os.SEEK_SET` - The start of the file-like object (the default)
* :py:data:`os.SEEK_CUR` - The current position in the file-like object
* :py:data:`os.SEEK_END` - The end of the file-like object
:returns: The new absolute position in the file-like object.
"""
self._validate_is_integer("offset", offset)
self._validate_is_integer("whence", whence)
self._validate_seekable()
self._validate_not_closed()
self._invalidate_readline_buffer()
return self._seek(offset, whence)