Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scale_message_read_writer.cpp
Go to the documentation of this file.
1
6
#include "
network/helpers/scale_message_read_writer.hpp
"
7
8
namespace
kagome::network
{
9
ScaleMessageReadWriter::ScaleMessageReadWriter
(
10
std::shared_ptr<libp2p::basic::MessageReadWriter> read_writer)
11
: read_writer_{std::move(read_writer)} {}
12
13
ScaleMessageReadWriter::ScaleMessageReadWriter
(
14
const
std::shared_ptr<libp2p::basic::ReadWriter> &read_writer)
15
:
read_writer_
{std::make_shared<libp2p::basic::MessageReadWriterUvarint>(
16
read_writer)} {}
17
}
// namespace kagome::network
kagome::network::ScaleMessageReadWriter::ScaleMessageReadWriter
ScaleMessageReadWriter(std::shared_ptr< libp2p::basic::MessageReadWriter > read_writer)
Definition:
scale_message_read_writer.cpp:9
scale_message_read_writer.hpp
kagome::network::ScaleMessageReadWriter::read_writer_
std::shared_ptr< libp2p::basic::MessageReadWriter > read_writer_
Definition:
scale_message_read_writer.hpp:84
kagome::network
Definition:
author_api_impl.hpp:37
core
network
helpers
scale_message_read_writer.cpp
Generated by
1.8.11