public override void OverwriteDeletedBytes(int address, int length) { if (_freespaceFiller == null) { return; } if (address > 0 && length > 0) { if (DTrace.enabled) { DTrace.WriteXbytes.LogLength(address, length); } BlockAwareBinWindow window = new BlockAwareBinWindow(_file, address, length); try { CreateFreespaceFiller().Fill(window); } catch (IOException e) { Sharpen.Runtime.PrintStackTrace(e); } finally { window.Disable(); } } }
/// <exception cref="System.IO.IOException"></exception> public virtual void Fill(BlockAwareBinWindow io) { io.Write(0, XBytes(io.Length())); }
public void Fill(BlockAwareBinWindow block) { byte[] emptyBytes = new byte[block.Length()]; block.Write(0,emptyBytes); }