Skip bytes until the specified predicate returns true.
Synopsis
Declared in <folly/io/Cursor.h>
template<typename Predicate>
void
skipWhile(Predicate const& predicate);
Description
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.
Parameters
Name |
Description |
predicate |
The predicate tested against each byte. |
Created with MrDocs