Forum Archive

LMZA should technically be possible.

chibill

As of IOS 9 the Data Compression Framework has supported LMZA so it should technically be possible to write the python LMZA to use that framework instead of a self compiled or the builtin undocumented apple version.

I realize you probably already looked at this. But just noticed this api just now.

omz

That’s interesting. I wasn’t aware that libcompression has basic lzma support built-in.

chibill

Oh... so I guess my assumption that you probably already saw it was wrong.

I think this is how people normally use LMZA and why even a self compiled one causes Apple to flag it.

omz

Yeah, I had assumed that libcompression was mostly about LZFSE, Apple‘s own new compression algorithm. I guess it might even be possible to use lzma via ctypes this way...

chibill

Possibly. I am still poking around in the list of frameworks and stuff. Looking for stuff that is possibly new in iOS 11.

JonB

https://gist.github.com/1b5066eebac9467accabaec88e993f46
This implements the buffe encode/decode, though the streaming version is probably better.