TARAXA
Loading...
Searching...
No Matches
db_utils.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <rocksdb/slice.h>
4
5namespace taraxa {
6template <typename T>
7T FromSlice(rocksdb::Slice const& e) {
8 T value;
9 memcpy(&value, e.data(), sizeof(T));
10 return value;
11}
12} // end namespace taraxa
Definition app.hpp:16
T FromSlice(rocksdb::Slice const &e)
Definition db_utils.hpp:7