folly::io::Cursor::skipWhile

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

NameDescription
predicateThe predicate tested against each byte.