Пример #1
0
 internal EPFArchiveEntryForUpdate(EPFArchive archive, string name, int length, int compressedLength, long dataPos) :
     base(archive)
 {
     Name             = name;
     Length           = length;
     CompressedLength = compressedLength;
     _archiveDataPos  = dataPos;
 }
Пример #2
0
        protected EPFArchiveEntry(EPFArchive archive)
        {
            if (archive == null)
            {
                throw new ArgumentNullException(nameof(archive));
            }

            Archive = archive;

            PropertyChanged += EPFArchiveEntry_PropertyChanged;
        }
Пример #3
0
        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;
        }
Пример #4
0
 internal EPFArchiveEntryForUpdate(EPFArchive archive, long dataPos) :
     base(archive)
 {
     _archiveDataPos = dataPos;
 }
Пример #5
0
 internal EPFArchiveEntryForRead(EPFArchive archive, long dataPos) :
     base(archive)
 {
     _ArchiveDataPos = dataPos;
 }