Exemplo n.º 1
0
 public void ShiftBeginAddress(long oldBeginAddress, long newBeginAddress)
 {
     epoch.BumpCurrentEpoch(() =>
     {
         device.DeleteAddressRange(oldBeginAddress, newBeginAddress);
         objlogDevice.DeleteSegmentRange((int)(oldBeginAddress >> LogSegmentSizeBits), (int)(newBeginAddress >> LogSegmentSizeBits));
     });
 }
Exemplo n.º 2
0
 public void DeleteAddressRange(long fromAddress, long toAddress)
 {
     _device.DeleteSegmentRange(
         (int)(fromAddress >> _segmentSizeBits),
         (int)(toAddress >> _segmentSizeBits));
 }