Kagome
Polkadot Runtime Engine in C++17
scale_message_read_writer.cpp
Go to the documentation of this file.
1 
7 
8 namespace kagome::network {
10  std::shared_ptr<libp2p::basic::MessageReadWriter> read_writer)
11  : read_writer_{std::move(read_writer)} {}
12 
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
ScaleMessageReadWriter(std::shared_ptr< libp2p::basic::MessageReadWriter > read_writer)
std::shared_ptr< libp2p::basic::MessageReadWriter > read_writer_