folly::IOBuf::isChained

Is this IOBuf part of a chain.

Synopsis

Declared in <folly/io/IOBuf.h>

bool
isChained() const noexcept;

Description

Technically, all IOBufs are part of a chain, possibly of length 1. This function checks if the chain is non-trivial, i.e. the chain has more than just one IOBuf in it.

methodset Chaining

Return Value

true iff the the IOBuf's chain has more than 1 IOBuf in it