6#ifndef BITCOIN_NETMESSAGEMAKER_H
7#define BITCOIN_NETMESSAGEMAKER_H
18 template <
typename... Args>
20 Args &&...args)
const {
24 std::forward<Args>(args)...};
28 template <
typename... Args>
30 return Make(0, std::move(
msg_type), std::forward<Args>(args)...);
CNetMsgMaker(int nVersionIn)
CSerializedNetMsg Make(int nFlags, std::string msg_type, Args &&...args) const
CSerializedNetMsg Make(std::string msg_type, Args &&...args) const
Minimal stream for overwriting and/or appending to an existing byte vector.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
std::vector< uint8_t > data