MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UnserializeFromVector

Function UnserializeFromVector

src/script/sign.h:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144// Takes a stream and multiple arguments and unserializes them first as a vector then each object individually in the order provided in the arguments
145template<typename Stream, typename... X>
146void UnserializeFromVector(Stream& s, X&... args)
147{
148 size_t expected_size = ReadCompactSize(s);
149 size_t remaining_before = s.size();
150 UnserializeMany(s, args...);
151 size_t remaining_after = s.size();
152 if (remaining_after + expected_size != remaining_before) {
153 throw std::ios_base::failure("Size of value was not the stated size");
154 }
155}
156
157// Deserialize HD keypaths into a map
158template<typename Stream>

Callers 2

UnserializeMethod · 0.85
UnserializeMethod · 0.85

Calls 3

ReadCompactSizeFunction · 0.85
UnserializeManyFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected