Subtraction operators
Declared in <folly/io/Cursor.h>
Get a new cursor, retreated by offset from this cursor.
Cursor
operator-(size_t offset) const;
» more...
Return the distance between two cursors.
size_t
operator-(CursorBase<Cursor, IOBuf const> const& other) const;
» more...
Return the distance from the given IOBuf to the this cursor.
size_t
operator-(IOBuf const* buf) const;
» more...
| Name | Description |
|---|---|
| offset | The number of bytes to retreat. |
| other | The cursor to measure the distance from. |
| buf | The IOBuf to measure the distance from. |