folly::io

Cursor and queue utilities for reading and writing IOBuf chains.

Types

NameDescription
Appender Append to the end of a buffer chain, growing the chain (by allocating new buffers) in increments of at least growth bytes every time. Won't grow (and push() and ensure() will throw) if growth == 0.
Cursor Read-only cursor over an IOBuf chain.
CursorBase Base class implementing the shared cursor logic over an IOBuf chain.
QueueAppender Appender that writes to the end of an IOBufQueue.
RWCursor Read-write cursor over an IOBuf chain.
ThinCursor A register-pass facade for a Cursor over an IOBuf chain.
Writable Mixin providing write operations for cursor types.

Type Aliases

NameDescription
RWPrivateCursor Read-write cursor that assumes private access to the IOBuf chain.
RWUnshareCursor Read-write cursor that unshares (copy-on-write) buffers before writing.

Enums

NameDescription
CloneOwnership Whether a clone may point at buffers that IOBuf does not own.
CursorAccess Selects whether a read-write cursor unshares buffers before writing.