Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1251template <typename Stream>1252void Serialize(Stream& s) const1253{1254ParamsStream ss{s, m_params};1255::Serialize(ss, m_object);1256}1257template <typename Stream>1258void Unserialize(Stream& s)1259{1260ParamsStream ss{s, m_params};1261::Unserialize(ss, m_object);1262}1263};1265/**1266* Helper macro for SerParams structs1267*1268* Allows you define SerParams instances and then apply them directly1269* to an object via function call syntax, eg:1270*1271* constexpr SerParams FOO{....};1272* ss << FOO(obj);1273*/1274#define SER_PARAMS_OPFUNC \1275/** \1276* Return a wrapper around t that (de)serializes it with specified parameter params. \1277* \1278* See SER_PARAMS for more information on serialization parameters. \1279*/ \1280template <typename T> \1281auto operator()(T&& t) const \1282{ \1283return ParamsWrapper{*this, t}; \1284}1286#endif // BITCOIN_SERIALIZE_H