/// <summary> /// When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. /// </summary> /// <exception cref="T:System.IO.IOException">An I/O error occurs. </exception><filterpriority>2</filterpriority> public override void Flush() { if (_blockOffset == _blockProvider.GetActiveBlockOffset(_path)) { _blockProvider.WriteBlock(_path, _blockOffset, _block, _blockLength); } _flushRequired = false; }
/// <summary> /// Gets the byte offset of the current active block /// </summary> /// <param name="path">The path to the block store</param> public long GetActiveBlockOffset(string path) { return(_blockProvider.GetActiveBlockOffset(path)); }