Piker-Alpha / LZVN

C-Style conversion of lzvn_decode
43 stars 15 forks source link

cross-platform version #5

Open RJVB opened 6 years ago

RJVB commented 6 years ago

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.

gingerbeardman commented 6 years ago

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

RJVB commented 6 years ago

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 ;)

Artoria2e5 commented 4 years ago

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.