12#ifndef SST_CORE_OBJECTSERIALIZATION_H
13#define SST_CORE_OBJECTSERIALIZATION_H
15#include "sst/core/serialization/serializer.h"
23template <
typename dataType>
25serialize(dataType& data)
32 size_t size = ser.size();
34 std::vector<char> buffer;
37 ser.start_packing(buffer.data(), size);
44template <
typename dataType>
46deserialize(std::vector<char>& buffer)
48 dataType* tgt =
nullptr;
52 ser.start_unpacking(buffer.data(), buffer.size());
58template <
typename dataType>
60deserialize(std::vector<char>& buffer, dataType& tgt)
64 ser.start_unpacking(buffer.data(), buffer.size());
68template <
typename dataType>
70deserialize(
char* buffer,
int blen, dataType& tgt)
74 ser.start_unpacking(buffer, blen);
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35