#ifndef SERIALIZATION_BUFFER_HPP_8G2XAHRG #define SERIALIZATION_BUFFER_HPP_8G2XAHRG #include #include #include #include #include namespace vanetza { namespace geonet { /** * This function is deprecated. * It will be removed as soon as geonet::serialize signatures are * compatible with common::serialize_into_buffer */ template void serialize_into_buffer(const T& t, ByteBuffer& buf) { byte_buffer_sink sink(buf); boost::iostreams::stream_buffer stream(sink); OutputArchive ar(stream); serialize(t, ar); } /** * This function is deprecated. * It will be removed as soon as geonet::deserialize signatures are * compatible with common::deserialize_into_buffer */ template void deserialize_from_buffer(T& t, const ByteBuffer& buf) { byte_buffer_source source(buf); boost::iostreams::stream_buffer stream(source); InputArchive ar(stream); deserialize(t, ar); } } // namespace geonet } // namespace vanetza #endif /* SERIALIZATION_BUFFER_HPP_8G2XAHRG */