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

Method FindByte

src/streams.h:576–585  ·  view source on GitHub ↗

search for a given byte in the stream, and remain positioned on it

Source from the content-addressed store, hash-verified

574
575 // search for a given byte in the stream, and remain positioned on it
576 void FindByte(char ch)
577 {
578 while (true) {
579 if (nReadPos == nSrcPos)
580 Fill();
581 if (vchBuf[nReadPos % vchBuf.size()] == ch)
582 break;
583 nReadPos++;
584 }
585 }
586};
587
588#endif // BITCOIN_STREAMS_H

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected