MCPcopy Create free account
hub / github.com/LUX-Core/lux / SetLimit

Method SetLimit

src/streams.h:559–565  ·  view source on GitHub ↗

prevent reading beyond a certain position no argument removes the limit

Source from the content-addressed store, hash-verified

557 // prevent reading beyond a certain position
558 // no argument removes the limit
559 bool SetLimit(uint64_t nPos = (uint64_t)(-1))
560 {
561 if (nPos < nReadPos)
562 return false;
563 nReadLimit = nPos;
564 return true;
565 }
566
567 template <typename T>
568 CBufferedFile& operator>>(T& obj)

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected