MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Serialize

Function Serialize

src/test/fuzz/deserialize.cpp:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60template <typename T, typename P>
61DataStream Serialize(const T& obj, const P& params)
62{
63 DataStream ds{};
64 ds << params(obj);
65 return ds;
66}
67
68template <typename T, typename P>
69T Deserialize(DataStream&& ds, const P& params)

Calls

no outgoing calls

Tested by

no test coverage detected