[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lzlib usage
- From: Brian Maher <maherb@...>
- Date: Fri, 29 Jan 2010 17:34:53 -0800
FYI, I've changed the default to use inflateInit2(), I've also
switched it to use CMake.
On Fri, Jan 29, 2010 at 5:30 AM, Brian Maher <email@example.com> wrote:
> FYI, if you want a streaming interface to zlib, you can try this out:
> 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
> I should also add options so that deflateInit2() parameters may be
> specified (give the library more flexibility).
> On Thu, Jan 28, 2010 at 3:01 PM, Phoenix Sol <firstname.lastname@example.org> wrote:
>> On Thu, Jan 28, 2010 at 4:16 PM, GrayFace <email@example.com> wrote:
>>> ZLib itself does support decompressing by chunks. You can read any number
>>> of bytes from the decompression stream.
>> Oh yeah. Duh, I've piped compressed data through gzip -d before; same thing,
>> ...time passes...
>> Ha. Got it working. Thanks!!
> Brian Maher >> Glory to God <<
Brian Maher >> Glory to God <<