OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
util/rpc/format.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 "format.hpp"
7
9
10namespace cbdc {
11 auto operator<<(serializer& ser, const rpc::header& header)
12 -> serializer& {
13 return ser << header.m_request_id;
14 }
15
16 auto operator>>(serializer& deser, rpc::header& header) -> serializer& {
17 return deser >> header.m_request_id;
18 }
19}
Interface for serializing objects into and out of raw bytes representations.
auto operator>>(serializer &deser, parsec::agent::rpc::request &req) -> serializer &
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &
RPC request and response header.
Definition header.hpp:15