コード例 #1
0
 public PreSaveNotificationScanControlInstruction PreSaveNotification(long offset, long size)
 {
     return(ZipIOBlockManager.CommonPreSaveNotificationHandler(
                _blockManager.Stream,
                offset, size,
                _persistedOffset, _size,
                ref _cachePrefixStream));
 }
コード例 #2
0
ファイル: ZipIOFileItemStream.cs プロジェクト: yk2012985/wpf
 /////////////////////////////
 // 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));
 }