add Cursor::readWhile() and skipWhile()
Summary: Add generic functions for reading or skipping until a predicate check fails. This will allow us to simplify a few different call sites that have their own logic similar to this. Also change readTerminatedString() to use readWhile(). Reviewed By: alandau Differential Revision: D3337581 fbshipit-source-id: 9f50914c83adfc882219046862972661bed0e72a
Showing
folly/io/Cursor-inl.h
0 → 100644
Please register or sign in to comment