What's the difference between FileStream.Flush() and FileStream.Flush(True)?

前端 未结 3 632
时光说笑
时光说笑 2021-02-18 12:33

MSDN says that FileStream.Flush(True) \"also clears all intermediate file buffers.\".

What does \"all intermediate file buffers\" mean exactly?

3条回答
  •  无人及你
    2021-02-18 13:13

    This will make an extra call to flush the buffer to file:

     Win32Native.FlushFileBuffers(this._handle);
    

提交回复
热议问题