public sealed override void Flush() => Flush(flushToDisk: false); // we have nothing to flush as there is no buffer here internal sealed override void Flush(bool flushToDisk) { if (flushToDisk && CanWrite) { FileStreamHelpers.FlushToDisk(_fileHandle, _path); } }
internal override void Flush(bool flushToDisk) { FlushInternalBuffer(); if (flushToDisk && CanWrite) { FileStreamHelpers.FlushToDisk(_fileHandle); } }