OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
util.hpp File Reference
Include dependency graph for util/raft/util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cbdc
 

Functions

template<typename T , typename B >
auto cbdc::make_buffer (const T &obj) -> std::enable_if_t< std::is_same_v< B, nuraft::ptr< nuraft::buffer > >, nuraft::ptr< nuraft::buffer > >
 Serialize object into nuraft::buffer using a cbdc::nuraft_serializer.
 
template<typename T >
auto cbdc::from_buffer (nuraft::buffer &buf) -> std::optional< T >
 Deserialize object of given type from a nuraft::buffer.