|
| Cursor (const IOBuf *buf) |
|
template<class OtherDerived , class OtherBuf > |
| Cursor (const detail::CursorBase< OtherDerived, OtherBuf > &cursor) |
|
| CursorBase (const IOBuf *buf) |
|
| CursorBase (const CursorBase< OtherDerived, OtherBuf > &cursor) |
|
void | reset (const IOBuf *buf) |
|
size_t | getCurrentPosition () const |
|
const uint8_t * | data () const |
|
size_t | length () const |
|
size_t | totalLength () const |
|
bool | canAdvance (size_t amount) const |
|
bool | isAtEnd () const |
|
void | advanceToEnd () |
|
Cursor & | operator+= (size_t offset) |
|
Cursor | operator+ (size_t offset) const |
|
Cursor & | operator-= (size_t offset) |
|
Cursor | operator- (size_t offset) const |
|
size_t | operator- (const CursorBase &other) const |
|
size_t | operator- (const const IOBuf *buf) const |
|
bool | operator== (const Cursor &other) const |
|
bool | operator!= (const Cursor &other) const |
|
std::enable_if< std::is_arithmetic< T >::value, bool >::type | tryRead (T &val) |
|
bool | tryReadBE (T &val) |
|
bool | tryReadLE (T &val) |
|
T | read () |
|
T | readBE () |
|
T | readLE () |
|
std::string | readFixedString (size_t len) |
|
std::string | readTerminatedString (char termChar= '\0', size_t maxLength=std::numeric_limits< size_t >::max()) |
|
std::string | readWhile (const Predicate &predicate) |
|
void | readWhile (const Predicate &predicate, Output &out) |
|
void | skipWhile (const Predicate &predicate) |
|
size_t | skipAtMost (size_t len) |
|
void | skip (size_t len) |
|
void | skipNoAdvance (size_t len) |
|
size_t | retreatAtMost (size_t len) |
|
void | retreat (size_t len) |
|
size_t | pullAtMost (void *buf, size_t len) |
|
void | pull (void *buf, size_t len) |
|
ByteRange | peekBytes () |
|
std::pair< const uint8_t *, size_t > | peek () |
|
void | clone (std::unique_ptr< folly::IOBuf > &buf, size_t len) |
|
void | clone (folly::IOBuf &buf, size_t len) |
|
size_t | cloneAtMost (folly::IOBuf &buf, size_t len) |
|
size_t | cloneAtMost (std::unique_ptr< folly::IOBuf > &buf, size_t len) |
|
Definition at line 721 of file Cursor.h.