OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
util/raft/messages.cpp
Go to the documentation of this file.
1
// Copyright (c) 2021 MIT Digital Currency Initiative,
2
// Federal Reserve Bank of Boston
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#include "
messages.hpp
"
7
8
namespace
cbdc
{
9
auto
operator<<
(
serializer
& ser,
const
nuraft::ptr<nuraft::buffer>& buf)
10
->
serializer
& {
11
ser.write(buf->data_begin(), buf->size());
12
return
ser;
13
}
14
}
cbdc::serializer
Interface for serializing objects into and out of raw bytes representations.
Definition
serializer.hpp:14
cbdc
Definition
parsec/agent/client.cpp:11
cbdc::operator<<
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &
Definition
parsec/agent/format.cpp:11
messages.hpp
src
util
raft
messages.cpp
Generated by
1.12.0