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

Method FindByte

src/streams.h:561–569  ·  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

559
560 // search for a given byte in the stream, and remain positioned on it
561 void FindByte(char ch) {
562 while (true) {
563 if (nReadPos == nSrcPos)
564 Fill();
565 if (vchBuf[nReadPos % vchBuf.size()] == ch)
566 break;
567 nReadPos++;
568 }
569 }
570};
571
572#endif // BITCOIN_STREAMS_H

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected