Boost logo

Boost :

From: Alexander Dong Back Kim (alexdbkim_at_[hidden])
Date: 2008-08-08 01:28:46


Hi all,

I'm trying to serialize an object to an array of uint8_t which is basically
array of bytes. The source code that I have is ...

vector<string> names;
uint8_t data[60000];

// push_back 10 names

ofstream ofs ( "names.txt" )
boost::archive::text_oarchive os ( ofs );
oa & names;
ofs.close();

What I want to ask here is how I can avoid to create a file and fill the
data array instead by using boost serialization? Any comments will be
appreciated.

best regards,

-- 
Alexander Dong Back Kim

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk