5#ifndef BITCOIN_SEEDER_MESSAGEWRITER_H
6#define BITCOIN_SEEDER_MESSAGEWRITER_H
14template <
typename... Args>
18 .
Make(command, std::forward<Args>(args)...);
21 std::vector<uint8_t> serializedHeader;
27 if (payload.
data.size()) {
Double ended buffer combining vector and stream-like interfaces.
void write(Span< const value_type > src)
CSerializedNetMsg Make(int nFlags, std::string msg_type, Args &&...args) const
void prepareForTransport(const Config &config, CSerializedNetMsg &msg, std::vector< uint8_t > &header) override
const Config & GetConfig()
static void WriteMessage(CDataStream &stream, std::string command, Args &&...args)
Span< const std::byte > MakeByteSpan(V &&v) noexcept
std::vector< uint8_t > data