Example #1
0
 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();
         }
     }
 }
Example #2
0
 /// <exception cref="System.IO.IOException"></exception>
 public virtual void Fill(BlockAwareBinWindow io)
 {
     io.Write(0, XBytes(io.Length()));
 }
Example #3
0
 public void Fill(BlockAwareBinWindow block)
 {
     byte[] emptyBytes = new byte[block.Length()];
     block.Write(0, emptyBytes);
 }