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

Method SetLimit

src/streams.h:696–701  ·  view source on GitHub ↗

prevent reading beyond a certain position no argument removes the limit

Source from the content-addressed store, hash-verified

694 //! prevent reading beyond a certain position
695 //! no argument removes the limit
696 bool SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max()) {
697 if (nPos < m_read_pos)
698 return false;
699 nReadLimit = nPos;
700 return true;
701 }
702
703 template<typename T>
704 CBufferedFile& 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