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

Method FindByte

src/commons/serialize.h:1507–1515  ·  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

1505
1506 // search for a given byte in the stream, and remain positioned on it
1507 void FindByte(char ch) {
1508 while (true) {
1509 if (nReadPos == nSrcPos)
1510 Fill();
1511 if (vchBuf[nReadPos % vchBuf.size()] == ch)
1512 break;
1513 nReadPos++;
1514 }
1515 }
1516};
1517
1518class CNullObject {

Callers 1

LoadExternalBlockFileFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected