A register-pass facade for a Cursor over an IOBuf chain.
Declared in <folly/io/Cursor.h>
class ThinCursor;
| Name | Description |
|---|---|
ThinCursor [constructor] | Constructors |
operator= | Assignment operators |
canAdvance | Test whether the cursor can advance the given number of bytes. |
data | Get the data at the current cursor position. |
isAtEnd | Test whether the cursor is at the end of the current buffer. |
length | Get the number of readable bytes left in the current buffer. |
read | Read a value from the cursor, using a fallback for slow paths. |
readBE | Read a Big-Endian integral from the cursor, using a fallback for slow paths. |
readLE | Read a Little-Endian integral from the cursor, using a fallback for slow paths. |
skip | Advance the cursor by len bytes, using a fallback for slow paths. |
skipNoAdvance | Skip bytes in the current buffer without advancing to the next one. |
| Name | Description |
|---|---|
folly::io::Cursor | Read-only cursor over an IOBuf chain. |