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

Method SetPos

src/streams.h:530–542  ·  view source on GitHub ↗

rewind to a given reading position

Source from the content-addressed store, hash-verified

528
529 // rewind to a given reading position
530 bool SetPos(uint64_t nPos)
531 {
532 nReadPos = nPos;
533 if (nReadPos + nRewind < nSrcPos) {
534 nReadPos = nSrcPos - nRewind;
535 return false;
536 } else if (nReadPos > nSrcPos) {
537 nReadPos = nSrcPos;
538 return false;
539 } else {
540 return true;
541 }
542 }
543
544 bool Seek(uint64_t nPos)
545 {

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected