public function stream_seek($offset, $whence = SEEK_SET)
    {
        if ($this->fileHandle === null) {
            return false;
        }
        self::restore();
        $success = fseek($this->fileHandle, $offset, $whence);
        self::register();
        return $success;
    }