zerkman / zzlib

zlib-compressed file depacking library in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Compress data

mauricioabreu opened this issue · comments

Would you accept a PR including a new function used to compress data?

Thank you for this project!

Hi !

This was not in the original scope of this library, but this could be a very interesting improvement.

To remain coherent with the rest of the library, it would have to be written in pure Lua. Did you really do it ?
I think it would be necessary to support versions of Lua from 5.1 to 5.4, for maximum compatibility. LuaJIT only implements Lua 5.1, and the bit32 library, available as standard in Lua 5.1/5.2, is kind of deprecated from Lua 5.3, because of the presence of the new bitwise operators. I can help you with this aspect if necessary.

Thank you too for your interest in this project!

@zerkman thank you for the detailed answer.

My idea is to keep your goal to be pure Lua and support the range of versions you said.