[#absl-CordBuffer-MaximumPayload-02] = xref:absl.adoc[absl]::xref:absl/CordBuffer.adoc[CordBuffer]::MaximumPayload :relfileprefix: ../../ :mrdocs: `MaximumPayload` overloads == Synopses Declared in `<absl/strings/cord_buffer.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static size_t xref:absl/CordBuffer/MaximumPayload-088.adoc[MaximumPayload](); ---- [.small]#xref:absl/CordBuffer/MaximumPayload-088.adoc[_» more..._]# 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static size_t xref:absl/CordBuffer/MaximumPayload-086.adoc[MaximumPayload](size_t block_size); ---- [.small]#xref:absl/CordBuffer/MaximumPayload-086.adoc[_» more..._]# == Return Value * The maximum payload for a default‐limit CordBuffer. * The maximum payload for the given block size. == Parameters [cols="1,4"] |=== | Name| Description | *block_size* | The block size of the custom‐limit CordBuffer. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#