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)
ParameterType描述
flush_to_diskboolTrue 表示刷新所有中间缓冲区,否则为 false。

另见