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

Method SetLimit

src/commons/serialize.h:1492–1497  ·  view source on GitHub ↗

prevent reading beyond a certain position no argument removes the limit

Source from the content-addressed store, hash-verified

1490 // prevent reading beyond a certain position
1491 // no argument removes the limit
1492 bool SetLimit(uint64_t nPos = (uint64_t)(-1)) {
1493 if (nPos < nReadPos)
1494 return false;
1495 nReadLimit = nPos;
1496 return true;
1497 }
1498
1499 template<typename T>
1500 CBufferedFile& operator>>(T& obj) {

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected