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

Method SetLimit

src/streams.h:608–613  ·  view source on GitHub ↗

prevent reading beyond a certain position no argument removes the limit

Source from the content-addressed store, hash-verified

606 //! prevent reading beyond a certain position
607 //! no argument removes the limit
608 bool SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max()) {
609 if (nPos < m_read_pos)
610 return false;
611 nReadLimit = nPos;
612 return true;
613 }
614
615 template<typename T>
616 BufferedFile& operator>>(T&& obj) {

Callers 3

LoadExternalBlockFileMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64