MCPcopy Create free account
hub / github.com/ElementsProject/elements / Unser

Method Unser

src/blockencodings.h:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29 template<typename Stream, typename I>
30 void Unser(Stream& s, I& v)
31 {
32 uint64_t n = ReadCompactSize(s);
33 m_shift += n;
34 if (m_shift < n || m_shift >= std::numeric_limits<uint64_t>::max() || m_shift < std::numeric_limits<I>::min() || m_shift > std::numeric_limits<I>::max()) throw std::ios_base::failure("differential value overflow");
35 v = I(m_shift++);
36 }
37};
38
39class BlockTransactionsRequest {

Callers

nothing calls this directly

Calls 1

ReadCompactSizeFunction · 0.85

Tested by

no test coverage detected