[#absl-CordBuffer-MaximumPayload-088]
= xref:absl.adoc[absl]::xref:absl/CordBuffer.adoc[CordBuffer]::MaximumPayload
:relfileprefix: ../../
:mrdocs:

Returns the guaranteed maximum payload for a CordBuffer returned by the `CreateWithDefaultLimit()` method&period; 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&period; Applications can use this method to get approximate number of buffers required for a given byte size, etc&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;cord&lowbar;buffer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
size&lowbar;t
MaximumPayload();
----

== Description

For example&colon; const size&lowbar;t payload &equals; absl&colon;&colon;CordBuffer&colon;&colon;MaximumPayload()&semi; const size&lowbar;t buffer&lowbar;count &equals; (total&lowbar;size &plus; payload &hyphen; 1) &sol; payload&semi; buffers&period;reserve(buffer&lowbar;count)&semi;

== Return Value

The maximum payload for a default&hyphen;limit CordBuffer&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
