System::IO::FileStream::Flush 方法

FileStream::Flush() method

清除此流的缓冲区并将所有缓冲数据写入底层文件。

void System::IO::FileStream::Flush() override

另见

FileStream::Flush(bool) method

清除此流的缓冲区并将所有缓冲数据写入底层文件。相当于方法 Flush()

void System::IO::FileStream::Flush(bool flush_to_disk)
参数类型描述
flush_to_diskbool如果为 true,则刷新所有中间缓冲区;否则为 false。

另见