Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams] Flushing a zlib_compressor... how to obtain a “zlib sync flush” ?
From: Tim Day (timday_at_[hidden])
Date: 2010-03-23 07:48:20


On Thu, 2010-03-18 at 21:00 -0700, eg wrote:
> On 3/18/2010 5:31 AM, Tim Day wrote:
> > Is there some magic required to obtain a "zlib sync flush" when using
> > boost::iostreams::zlib_compressor ?
>
> This is currently a feature request. In the ticket comments, the library
> author refers to a mailing list thread wherein he does reply with how
> the library works now:
>
> See https://svn.boost.org/trac/boost/ticket/1656

Thanks that's useful info.

The fundamental problem seems to be that the symmetric_filter that
zlib_compressor inherits from isn't itself flushable (which seems rather
an oversight). Any idea what it would take to add flushable ? On the
face of it, it might be as simple as adding the flushable_tag and
exposing the existing private flush methods. Or is there much more to
it than that ? (I want to give it try at some point).

Tim


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net