[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lzlib usage
- From: Brian Maher <maherb@...>
- Date: Fri, 29 Jan 2010 05:30:15 -0800
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 <email@example.com> wrote:
> On Thu, Jan 28, 2010 at 4:16 PM, GrayFace <firstname.lastname@example.org> 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 <<