예제 #1
0
            internal DmgReader(ReaderOptions readerOptions, DmgArchive archive, string fileName)
                : base(readerOptions, ArchiveType.Dmg)
            {
                _archive  = archive;
                _fileName = fileName;
                Volume    = archive.Volumes.Single();

                using var compressedStream = DmgUtil.LoadHFSPartitionStream(Volume.Stream, Volume.Header);
                _partitionStream           = compressedStream?.Decompress();
            }
예제 #2
0
 internal DmgArchiveEntry(Stream?stream, DmgArchive archive, HFSCatalogRecord record, string path, DmgFilePart part)
     : base(record, path, stream?.Length ?? 0, part)
 {
     _stream = stream;
     Archive = archive;
 }