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