internal EPFArchiveEntryForUpdate(EPFArchive archive, string name, int length, int compressedLength, long dataPos) : base(archive) { Name = name; Length = length; CompressedLength = compressedLength; _archiveDataPos = dataPos; }
protected EPFArchiveEntry(EPFArchive archive) { if (archive == null) { throw new ArgumentNullException(nameof(archive)); } Archive = archive; PropertyChanged += EPFArchiveEntry_PropertyChanged; }
internal EPFArchiveEntryForCreate(EPFArchive archive, string name, string filePath) : base(archive) { if (name == null) { throw new ArgumentNullException(nameof(name)); } Name = name; var fileInfo = new FileInfo(filePath); if (!fileInfo.Exists) { throw new ArgumentException("Source file for entry doesn't exist."); } Length = (int)fileInfo.Length; CompressedLength = Length; _filePath = filePath; _archiveDataPos = -1; }
internal EPFArchiveEntryForUpdate(EPFArchive archive, long dataPos) : base(archive) { _archiveDataPos = dataPos; }
internal EPFArchiveEntryForRead(EPFArchive archive, long dataPos) : base(archive) { _ArchiveDataPos = dataPos; }