12 #ifndef SST_CORE_OBJECTSERIALIZATION_H    13 #define SST_CORE_OBJECTSERIALIZATION_H    15 #include "sst/core/serialization/serializer.h"    23 template <
typename dataType>
    25 serialize(dataType& data)
    32     size_t size = ser.size();
    34     std::vector<char> buffer;
    37     ser.start_packing(buffer.data(), size);
    44 template <
typename dataType>
    46 deserialize(std::vector<char>& buffer)
    48     dataType* tgt = 
nullptr;
    52     ser.start_unpacking(buffer.data(), buffer.size());
    58 template <
typename dataType>
    60 deserialize(std::vector<char>& buffer, dataType& tgt)
    64     ser.start_unpacking(buffer.data(), buffer.size());
    68 template <
typename dataType>
    70 deserialize(
char* buffer, 
int blen, dataType& tgt)
    74     ser.start_unpacking(buffer, blen);
    82 #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:35