|
Boost Users : |
Subject: Re: [Boost-users] concat files for compression
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2010-06-12 17:12:26
Kraus Philipp:
> On 2010-06-11 09:34:27 +0200, Roland Bock said:
>>
>> Hi,
>>
>> I see two options:
>>
>> a) You write a new multi_file_source class which can any number of input
>> files.
>>
>> b) Instead of working with a source, you could work with a sink at the
>> other end of the pipeline. Then just copy the content of the two files
>> into the stream.
>
> Hi,
>
> I think I would like to use the second idea, but how I can do this?
>
I have some classes -- SendCompressedBuffer and
ReceiveCompressedBuffer -- that may be helpful.
SendCompressedBuffer uses bzip to compress data
before it forwards the data. It is able to marshall files
and other data. There's an archive -- fear not, it's all of
17,517 bytes -- that you can download and has the classes
I mentioned.
Brian Wood
Ebenezer Enterprises
http://webEbenezer.net
(651) 251-9384
"The kingdom of heaven is like a treasure hidden in the field,
which a man found and hid again; and from joy over it he
goes and sells all that he has and buys that field."
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