OpenCBDC Transaction Processor
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
Variables
Typedefs
a
b
c
d
e
h
i
k
l
p
r
s
t
v
w
Enumerations
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
h
i
m
Typedefs
b
c
d
e
f
g
h
i
k
l
p
r
s
t
v
Enumerations
Related Symbols
Files
File List
Globals
All
Functions
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
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
8
#include "
util/serialization/format.hpp
"
9
10
namespace
cbdc
{
11
auto
operator<<
(
serializer
& ser,
const
rpc::header
& header)
12
->
serializer
& {
13
return
ser << header.m_request_id;
14
}
11
auto
operator<<
(
serializer
& ser,
const
rpc::header
& header) {
…
}
15
16
auto
operator>>
(
serializer
& deser,
rpc::header
& header) ->
serializer
& {
17
return
deser >> header.m_request_id;
18
}
16
auto
operator>>
(
serializer
& deser,
rpc::header
& header) ->
serializer
& {
…
}
19
}
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 &deser, parsec::agent::rpc::request &req) -> serializer &
Definition
parsec/agent/format.cpp:16
cbdc::operator<<
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &
Definition
parsec/agent/format.cpp:11
cbdc::rpc::header
RPC request and response header.
Definition
header.hpp:15
format.hpp
format.hpp
src
util
rpc
format.cpp
Generated by
1.12.0