36 target.append(
reinterpret_cast<const char *
>(&value),
sizeof(T));
59 std::memcpy(&value, source.data() + offset,
sizeof(T));
void serializeString(std::string &target, const std::string &str)
Serialize a string value.
Definition: serialization.cc:18
void serializeInteger(std::string &target, T value)
Serialize an integer value.
Definition: serialization.h:35
T deserializeInteger(const std::string &source, size_t &offset)
Deserialize an integer value.
Definition: serialization.h:57
std::string deserializeString(std::string &source, size_t &offset)
Deserialize a string value.
Definition: serialization.cc:24