[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lzlib usage
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Fri, 29 Jan 2010 15:04:31 +0100
2010/1/29 Brian Maher <maherb@brimworks.com>:
> FYI, if you want a streaming interface to zlib, you can try this out:
>
> http://github.com/brimworks/lua-zlib
>
> It is a small bit of code that I wrote for fun. Note that it
> currently hard-codes deflateInit() and inflateInit(), but after more
> experience of using zlib, I now know that if you want gzip headers to
> be properly read, you need to use inflateInit2() and pass in MAX_WBITS
> + 32 magic number for the window size :-(. I'll see about fixing
> this.
>
> I should also add options so that deflateInit2() parameters may be
> specified (give the library more flexibility).
For what it's worth I also have a zlib binding available there:
http://piratery.net/hg/luazlib/