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

`MaximumPayload` overloads

== Synopses

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

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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
size&lowbar;t
xref:absl/CordBuffer/MaximumPayload-088.adoc[MaximumPayload]();
----

[.small]#xref:absl/CordBuffer/MaximumPayload-088.adoc[_» more&period;&period;&period;_]#

Overload to the above `MaximumPayload()` except that it returns the maximum payload for a CordBuffer returned by the `CreateWithCustomLimit()` method given the provided `block&lowbar;size`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
static
size&lowbar;t
xref:absl/CordBuffer/MaximumPayload-086.adoc[MaximumPayload](size&lowbar;t block&lowbar;size);
----

[.small]#xref:absl/CordBuffer/MaximumPayload-086.adoc[_» more&period;&period;&period;_]#

== Return Value

* The maximum payload for a default&hyphen;limit CordBuffer&period;
* The maximum payload for the given block size&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block&lowbar;size*
| The block size of the custom&hyphen;limit CordBuffer&period;
|===


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