22 #include "soss_client/typed_named_cache.h"
44 virtual void serialize(
const T&
object, std::vector<uint8_t> &bytes_out, std::vector<uint8_t> &prop_spec_out)
46 bytes_out.resize(
sizeof(T));
47 memcpy(&((bytes_out)[0]), &
object,
sizeof(T));
51 virtual boost::shared_ptr<T>
deserialize(
const std::vector<uint8_t> &bytes)
53 boost::shared_ptr<T> obj_ptr(
new T());
54 memcpy(obj_ptr.get(), &(bytes[0]), bytes.size());