12 #ifndef SST_CORE_OBJECTSERIALIZATION_H 13 #define SST_CORE_OBJECTSERIALIZATION_H 15 #include "sst/core/serialization/serializer.h" 21 template <
typename dataType>
23 serialize(dataType& data)
30 size_t size = ser.size();
32 std::vector<char> buffer;
35 ser.start_packing(buffer.data(), size);
42 template <
typename dataType>
44 deserialize(std::vector<char>& buffer)
46 dataType* tgt =
nullptr;
50 ser.start_unpacking(buffer.data(), buffer.size());
56 template <
typename dataType>
58 deserialize(std::vector<char>& buffer, dataType& tgt)
62 ser.start_unpacking(buffer.data(), buffer.size());
66 template <
typename dataType>
68 deserialize(
char* buffer,
int blen, dataType& tgt)
72 ser.start_unpacking(buffer, blen);
78 #endif // SST_CORE_OBJECTSERIALIZATION_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:42
Definition: objectComms.h:21