public virtual void Flush(bool flushToDisk) { FlushBuffer(); // This does the fsync if (flushToDisk) { MonoIOError error; MonoIO.Flush(handle, out error); } }
public virtual void Flush(bool flushToDisk) { if (safeHandle.IsClosed) { throw new ObjectDisposedException("Stream has been closed"); } FlushBuffer(); // This does the fsync if (flushToDisk) { MonoIOError error; MonoIO.Flush(safeHandle, out error); } }