absl::CordBuffer::MaximumPayload

Overload to the above MaximumPayload() except that it returns the maximum payload for a CordBuffer returned by the CreateWithCustomLimit() method given the provided block_size.

Synopsis

Declared in <absl/strings/cord_buffer.h>

constexpr
static
size_t
MaximumPayload(size_t block_size);

Return Value

The maximum payload for the given block size.

Parameters

NameDescription
block_sizeThe block size of the custom-limit CordBuffer.