public function seek($offset, $whence = SEEK_SET) { $this->assertAttached(); if (!$this->stream->seek($offset, $whence)) { throw new \RuntimeException('An error occurred during the seek operation.'); } return true; }