Boost logo

Boost :

From: Jerry Schwarz (jerry_at_[hidden])
Date: 2007-05-31 02:06:17

I just sent an email about the use of streambuf's in this library. I
think that compression would work well as a streambuf filter. That
is, something like

     class compresionbuf : streambuf_type {
         public: compressionbuf(streambuf* underlying);

This would apply the compression algoritym (whatever you want to
use) bytes put into the compressionbuf would be compressed according
to what ever algorithm you're using and then sent to underlying.
Similarly requests to get bytes from compressionbuf would get bytes
from underlying and apply whatever decompression algorithm is
desired. Note that such a class would be usable with both iostream
and binary_iostream.

On May 30, 2007, at 9:56 AM, Richard Hadsell wrote:

> Ares Lagae wrote:
>> The binary_iostreams library does not try to modify the traditional
>> iostreams classes, because this is indeed very difficult or
>> impossible. The
>> binary_iostreams library is a new hierarchy of classes developed
>> to be very
>> similar to the iostreams hierarchy. The actual implementation is
>> quite
>> simple.
> As long as it can read and write compressed data in binary format,
> we'll
> be happy. Maybe it was the compression filters that seemed to be
> incompatible with binary format.
> --
> Dick Hadsell 914-259-6320 Fax: 914-259-6499
> Reply-to: hadsell_at_[hidden]
> Blue Sky Studios
> 44 South Broadway, White Plains, NY 10601
> _______________________________________________
> Unsubscribe & other changes:
> listinfo.cgi/boost

Boost list run by bdawes at, gregod at, cpdaniel at, john at