Skip bytes until the specified predicate returns true.
Declared in <folly/io/Cursor.h>
template<typename Predicate>
void
skipWhile(Predicate const& predicate);
methodset Consumers
The predicate will be called on each byte in turn, until it returns false or until the end of the IOBuf chain is reached.
| Name | Description |
|---|---|
| predicate | The predicate tested against each byte. |