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

Function SerializeToVector

src/psbt.h:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115// The resulting output into the stream has the total serialized length of all of the objects followed by all objects concatenated with each other.
116template<typename Stream, typename... X>
117void SerializeToVector(Stream& s, const X&... args)
118{
119 SizeComputer sizecomp;
120 SerializeMany(sizecomp, args...);
121 WriteCompactSize(s, sizecomp.size());
122 SerializeMany(s, args...);
123}
124
125// Takes a stream and multiple arguments and unserializes them first as a vector then each object individually in the order provided in the arguments
126template<typename Stream, typename... X>

Callers 4

SerializeHDKeypathsFunction · 0.85
SerializeMethod · 0.85
SerializeMethod · 0.85
SerializeMethod · 0.85

Calls 3

SerializeManyFunction · 0.85
WriteCompactSizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected