Open joachimmetz opened 3 years ago
I've got no idea about an LZMA encoder (not that it's needed here), but for a small decoder, the public-domain xz-embedded might just suffice. It doesn't have all the filters, but dmgs created through hdiutil and ultimately the Apple Compression Framework are not quite known for using anything other than the default anyways. You probably won't even need XZ_DEC_BCJ
.
[Tangential: I wonder if the compression framework's limited lzma implementation can deal with "chunked" xz from lzma_stream_encoder_mt
.]
Unfortunately cannot reuse public domain code in this project.
Add compression fallback implementations for better cross-platform portability