Esempio n. 1
0
 public PreSaveNotificationScanControlInstruction PreSaveNotification(long offset, long size)
 {
     return(ZipIOBlockManager.CommonPreSaveNotificationHandler(
                _blockManager.Stream,
                offset, size,
                _persistedOffset, _size,
                ref _cachePrefixStream));
 }
Esempio n. 2
0
 /////////////////////////////
 // Internal Methods for the LocalFileBlock to call in order to know Dirty status and the new size
 /////////////////////////////
 internal PreSaveNotificationScanControlInstruction PreSaveNotification(long offset, long size)
 {
     return(ZipIOBlockManager.CommonPreSaveNotificationHandler(
                _blockManager.Stream,
                offset,
                size,
                _persistedOffset,
                Math.Min(_persistedSize, _currentStreamLength), // in case the stream is smaller then our persisted block on
                // disk, there is no need to preserve the meaningless persisted suffix
                ref _cachePrefixStream));
 }