forked from blue/lmdbal
external transaction methods for storage
This commit is contained in:
parent
f39d44890a
commit
e2dbea21d1
19 changed files with 273 additions and 58 deletions
|
@ -31,9 +31,12 @@ public:
|
|||
~Serializer() {};
|
||||
|
||||
int8_t deserialize(const MDB_val& data) {
|
||||
std::memcpy(&value, data.mv_data, 1);
|
||||
deserialize(data, value);
|
||||
return value;
|
||||
};
|
||||
void deserialize(const MDB_val& data, int8_t& result) {
|
||||
std::memcpy(&result, data.mv_data, 1);
|
||||
}
|
||||
MDB_val setData(const int8_t& data) {
|
||||
value = data;
|
||||
return getData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue