folly::io::Cursor::totalLength

Return the space available until the end of the entire IOBuf chain.

Synopsis

Declared in <folly/io/Cursor.h>

size_t
totalLength() const noexcept;

Description

methodset Capacity

For bounded Cursors, return the available space until the boundary.

Return Value

The number of bytes left until the end of the chain or boundary.