search for a given byte in the stream, and remain positioned on it
| 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 |
no test coverage detected