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(); }
internal DmgArchiveEntry(Stream?stream, DmgArchive archive, HFSCatalogRecord record, string path, DmgFilePart part) : base(record, path, stream?.Length ?? 0, part) { _stream = stream; Archive = archive; }