Boost logo

Boost Users :

Subject: [Boost-users] a memory output stream
From: Lloyd (lloyd_at_[hidden])
Date: 2008-09-20 07:48:26


Hi,
 
 I am a newbie and new to boost.

 In my program there is loop and in this loop it is reading a buffer
full of data in each iteration, i want to append this data to a buffer.
How can I do this with boost?

sample code
===========

int l=0;
char* buff=new char[1024];
while(1)
{
        //Here it is reading from a gziped buffer
        l = boost::iostreams::read(in,buff,1024);

        if(l != 1024)
                break;
        //how can I append this buff to a memory buffer thus to get a fully
uncompressed data in another buffer?.
}

Thank you very much,
  Lloyd
 

______________________________________
Scanned and protected by Email scanner


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