in src/azstoragetorch/io.py [0:0]
def _compute_new_position(self, offset: int, whence: int) -> int:
if whence == os.SEEK_SET:
return offset
if whence == os.SEEK_CUR:
return self._position + offset
if whence == os.SEEK_END:
return self._client.get_blob_size() + offset
raise ValueError(f"Unsupported whence: {whence}")