3 #include <boost/archive/binary_iarchive.hpp> 4 #include <boost/archive/binary_oarchive.hpp> 5 #include <boost/iostreams/device/array.hpp> 6 #include <boost/iostreams/device/back_inserter.hpp> 7 #include <boost/iostreams/stream_buffer.hpp> 11 namespace serialization
14 template<
typename BufT>
18 namespace io = boost::iostreams;
19 io::back_insert_device<BufT> inserter(buf);
20 io::stream_buffer < io::back_insert_device<BufT> > strbuf(inserter);
22 boost::archive::binary_oarchive boa(strbuf, boost::archive::no_header);
27 template<
typename BufT>
31 namespace io = boost::iostreams;
32 io::array_source msgsrc((
char*) buf.data(), buf.size());
33 io::stream_buffer < io::array_source > msgbufsrc(msgsrc);
35 boost::archive::binary_iarchive bia(msgbufsrc, boost::archive::no_header);
Definition: parameters.hpp:11
void save(BufT &buf, const tendril &t)
Definition: tendril.hpp:16
A tendril is the slender, winding organ of the ecto::cell that gives it its awesome type erasure and ...
Definition: tendril.hpp:84
void load(const BufT &buf, tendril &t)
Definition: tendril.hpp:29