29 Serializer(
const QByteArray& p_value):value(p_value) {};
36 void deserialize(
const MDB_val& data, QByteArray& result) {
37 result.setRawData((
char*)data.mv_data, data.mv_size);
39 MDB_val
setData(
const QByteArray& data) {
45 result.mv_data = value.data();
46 result.mv_size = value.size();
A class handling serialization/deserialization.
Definition serializer.h:33
~Serializer()
Destoys the serializer.
Definition serializer.hpp:69
Serializer()
Creates an empty Serializer.
Definition serializer.hpp:40
MDB_val getData()
Returns the data if it already was serialized.
Definition serializer.hpp:153
T deserialize(const MDB_val &value)
Deserializes value.
Definition serializer.hpp:99
void clear()
Clears the state of serializer.
Definition serializer.hpp:137
MDB_val setData(const T &value)
Sets the data to the seriazer.
Definition serializer.hpp:83