
27 Apr
2011
27 Apr
'11
4:27 p.m.
Hello, I previously managed to write data to a gzipped file using the following code structure (it's an example of course, the "memblock" is actually filled with real data and the real filename is specified elsewhere).
#include
#include #include #include #include #include namespace io = boost::iostreams;
int size = 1000; char* memblock = new char [size];
io::filtering_ostream out; out.push(io::gzip_compressor()); out.push(io::file_descriptor_sink("c:/outfile.gz")); out.write (memblock, size);
Is there a reason not to invoke the stream's member function 'close' at
On Tue, Apr 26, 2011 at 8:54 PM, Anders Knudby