SevenZip/SevenZipExtractor.cs
/// <summary>
///   Gets the archive input stream.
/// </summary>
/// <returns>The archive input wrapper stream.</returns>
Gets the archive input stream.
Gets the archive input stream .
private IInStream GetArchiveStream(bool dispose)
        {
            if (_archiveStream != null)
            {
                if (_archiveStream is DisposeVariableWrapper)
                {
                    (_archiveStream as DisposeVariableWrapper).DisposeStream = dispose;
                }
                return _archiveStream;
            }
            if (_inStream != null)
            {
                _inStream.Seek(0, SeekOrigin.Begin);
                _archiveStream = new InStreamWrapper(_inStream, false);
            }
            else
            {
                if (!_fileName.EndsWith(".001", StringComparison.OrdinalIgnoreCase))
                {
                    _archiveStream = new InStreamWrapper(
                        new ArchiveEmulationStreamProxy(new FileStream(
                                                            _fileName, FileMode.Open, FileAccess.Read,
                                                            FileShare.ReadWrite),
                                                        _offset),
                        dispose);
                }
                else
                {
                    _archiveStream = new InMultiStreamWrapper(_fileName, dispose);
                    _packedSize = (_archiveStream as InMultiStreamWrapper).Length;
                }
            }
            return _archiveStream;
        }
private IInStream GetArchiveStream ( bool dispose ) { if ( _archiveStream != null ) { if ( _archiveStream is DisposeVariableWrapper ) { ( _archiveStream as DisposeVariableWrapper ) . DisposeStream = dispose ; } return _archiveStream ; } if ( _inStream != null ) { _inStream . Seek ( 0 , SeekOrigin . Begin ) ; _archiveStream = new InStreamWrapper ( _inStream , false ) ; } else { if ( ! _fileName . EndsWith ( " " , StringComparison . OrdinalIgnoreCase ) ) { _archiveStream = new InStreamWrapper ( new ArchiveEmulationStreamProxy ( new FileStream ( _fileName , FileMode . Open , FileAccess . Read , FileShare . ReadWrite ) , _offset ) , dispose ) ; } else { _archiveStream = new InMultiStreamWrapper ( _fileName , dispose ) ; _packedSize = ( _archiveStream as InMultiStreamWrapper ) . Length ; } } return _archiveStream ; }
Gets the archive input stream.
Gets the archive input stream .
The archive input wrapper stream.
The archive input wrapper stream .
dispose
bool