SevenZip/ArchiveUpdateCallback.cs
/// <summary>
///   Raises events for the GetStream method.
/// </summary>
/// <param name = "index">The current item index.</param>
/// <returns>True if not cancelled; otherwise, false.</returns>
Raises events for the GetStream method.
Raises events for the GetStream method .
private bool EventsForGetStream(uint index)
        {
            if (!FastCompression)
            {
                if (_fileStream != null)
                {
                    _fileStream.BytesRead += IntEventArgsHandler;
                }
                _doneRate += 1.0f/_actualFilesCount;
                var fiea = new FileNameEventArgs(_files != null ? _files[index].Name : _entries[index],
                                                 PercentDoneEventArgs.ProducePercentDone(_doneRate));
                OnFileCompression(fiea);
                if (fiea.Cancel)
                {
                    Canceled = true;
                    return false;
                }
            }
            return true;
        }
private bool EventsForGetStream ( uint index ) { if ( ! FastCompression ) { if ( _fileStream != null ) { _fileStream . BytesRead += IntEventArgsHandler ; } _doneRate += 1.0f / _actualFilesCount ; var fiea = new FileNameEventArgs ( _files != null ? _files [ index ] . Name : _entries [ index ] , PercentDoneEventArgs . ProducePercentDone ( _doneRate ) ) ; OnFileCompression ( fiea ) ; if ( fiea . Cancel ) { Canceled = true ; return false ; } } return true ; }
Raises events for the GetStream method.
Raises events for the GetStream method .
True if not cancelled; otherwise, false.
True if not cancelled ; otherwise false .
index
uint
The current item index.
The current item index .