Appender that writes to the end of an IOBufQueue.

Synopsis

Declared in <folly/io/Cursor.h>

class QueueAppender
    : public Writable<QueueAppender>

Base Classes

Name

Description

Writable<QueueAppender>

Mixin providing write operations for cursor types.

Member Functions

Name

Description

QueueAppender [constructor]

Constructors

append

Append n bytes.

ensure

Ensure that there are at least n contiguous bytes available for writing.

ensureWithinMaxGrowth

Ensures up to n contiguous bytes available, without surpassing maxGrowth_.

insert

insert overloads

length

Get the size of the writable tail.

push

push overloads

pushAtMost

pushAtMost overloads

reset

reset overloads

tail

Get a RWCursor for the last n bytes of this IOBufQueue.

trimEnd

Remove n bytes from the end of this IOBufQueue.

writableData

Get a pointer to the writable tail.

write

write overloads

writeBE

writeBE overloads

writeLE

writeLE overloads

operator RWCursor<access>

Get a RWCursor for this IOBufQueue.

Using Declarations

Name

Description

pushAtMost

Inherit the base ByteRange and Cursor overloads of pushAtMost.

Created with MrDocs