public function stream_flush()
    {
        if (!$this->handle) {
            return false;
        }
        self::restorePrev();
        $success = \fflush($this->handle);
        self::register();
        return $success;
    }