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

Method SetLimit

src/streams.h:546–551  ·  view source on GitHub ↗

prevent reading beyond a certain position no argument removes the limit

Source from the content-addressed store, hash-verified

544 // prevent reading beyond a certain position
545 // no argument removes the limit
546 bool SetLimit(uint64_t nPos = (uint64_t)(-1)) {
547 if (nPos < nReadPos)
548 return false;
549 nReadLimit = nPos;
550 return true;
551 }
552
553 template<typename T>
554 CBufferedFile& operator>>(T& obj) {

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected