Returns the guaranteed maximum payload for a CordBuffer returned by the CreateWithDefaultLimit() method. While small, each internal buffer inside a Cord incurs an overhead to manage the length, type and reference count for the buffer managed inside the cord tree. Applications can use this method to get approximate number of buffers required for a given byte size, etc.
Synopsis
Declared in <absl/strings/cord_buffer.h>
constexpr
static
size_t
MaximumPayload();
Description
For example: const size_t payload = absl::CordBuffer::MaximumPayload(); const size_t buffer_count = (total_size + payload ‐ 1) / payload; buffers.reserve(buffer_count);
Return Value
The maximum payload for a default‐limit CordBuffer.
Created with MrDocs