public ArchiveUpdateCallback(Dictionary <Stream, string> streamDict, string password, SevenZipCompressor compressor, UpdateData updateData, bool directoryStructure) : base(password) { this.Init(streamDict, compressor, updateData, directoryStructure); }
public ArchiveUpdateCallback(Stream stream, SevenZipCompressor compressor, UpdateData updateData, bool directoryStructure) { this.Init(stream, compressor, updateData, directoryStructure); }
private void Init(Dictionary <Stream, string> streamDict, SevenZipCompressor compressor, UpdateData updateData, bool directoryStructure) { this._Streams = new Stream[streamDict.Count]; streamDict.Keys.CopyTo(this._Streams, 0); this._Entries = new string[streamDict.Count]; streamDict.Values.CopyTo(this._Entries, 0); this._ActualFilesCount = streamDict.Count; foreach (Stream stream in this._Streams) { this._BytesCount += stream.Length; } this.CommonInit(compressor, updateData, directoryStructure); }
public ArchiveUpdateCallback(FileInfo[] files, int rootLength, string password, SevenZipCompressor compressor, UpdateData updateData, bool directoryStructure) : base(password) { this.Init(files, rootLength, compressor, updateData, directoryStructure); }
private void Init(FileInfo[] files, int rootLength, SevenZipCompressor compressor, UpdateData updateData, bool directoryStructure) { this._Files = files; this._RootLength = rootLength; if (files != null) { foreach (FileInfo file in files) { if (file.Exists) { this._BytesCount += file.Length; if ((file.Attributes & FileAttributes.Directory) == (FileAttributes)0) { ++this._ActualFilesCount; } } } } this.CommonInit(compressor, updateData, directoryStructure); }