12 May 17:00
Re: in-memory stream, binary archive,serialization
From: Matthias Troyer <troyer <at> phys.ethz.ch>
Subject: Re: in-memory stream, binary archive,serialization
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-05-12 15:00:15 GMT
Subject: Re: in-memory stream, binary archive,serialization
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-05-12 15:00:15 GMT
On 12 May 2008, at 01:20, Victor Whiskey Yankee wrote: > Hello, > > I need to serialize into and from a memory buffer using > boost::archive::binary_oarchive and binary_iarchive. > > Using std::stringstream does not work (it does work with text_oarchive > and text_iarchive in memory and using files). > > I found a mention in the archives about similar need here: > http://lists.boost.org/boost-users/2007/10/31580.php > > But I cannot figure it out. Have you tried using the Boost IO Stream library to create a stream that buffers in memory and use that with a binary archive? Matthias
RSS Feed