LZVN icon indicating copy to clipboard operation
LZVN copied to clipboard

cross-platform version

Open RJVB opened this issue 6 years ago • 3 comments

Hi,

Have you ever considered making this code cross-platform by hiding the kernel-related code behind #ifdefs?

I'd be interested in looking into that, but only if there's a real interest to this compression scheme in itself AND the assembly code doesn't do anything Mac-specific. What can you say about that?

Thanks, R.B.

RJVB avatar Apr 05 '18 08:04 RJVB

@RJVB I understand @Piker-Alpha now works for Apple so I think we will not get a response due to company policy

gingerbeardman avatar Sep 04 '18 12:09 gingerbeardman

Well, that'd s*ck, wouldn't it ... but maybe it'd also answer the implicit question whether there's a real interest to the compression scheme ;)

RJVB avatar Sep 04 '18 12:09 RJVB

Apple's open-source lzfse implementation at https://github.com/lzfse/lzfse contains a LZVN encoder and decoder. It reads by bytes and looks reasonably cross platform.

For external APIs, see https://github.com/inikep/lzbench/tree/master/lzfse (lzvn_decode.c) and https://github.com/lzfse/lzfse/pull/26.

@RJVB Would you like to try porting afsctool to a forked version of LZFSE instead? It's a good thing to point people to a better source.

Artoria2e5 avatar Dec 22 '19 11:12 Artoria2e5