
11 Jun
2010
11 Jun
'10
7:41 a.m.
Kraus Philipp wrote:
Hi,
I have implemented this litte code to compress a file
bio::filtering_streambuf< bio::input > l_deflate; switch (m_compress) { case gzip : l_deflate.push( bio::gzip_compressor() ); break; case bzip2 : l_deflate.push( bio::bzip2_compressor() ); break; }
l_deflate.push( bio::file_source(p_str, BOOST_IOS::binary) );
I need only the number of compressed bytes of l_deflate. I try to
use l_deflate.size() but it returns only a fixed number.
How I can read the number of compressed bytes?
Thanks
Phil
The only method I know is to add a small filter which counts the Bytes. Regards, Roland