[#BloombergLP-bdlsb-MemOutStreamBuf_Util]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::MemOutStreamBuf&lowbar;Util
:relfileprefix: ../../
:mrdocs:

Utility functions for `MemOutStreamBuf` buffer management&period;

== Synopsis

Declared in `&lt;bdlsb&lowbar;memoutstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct MemOutStreamBuf&lowbar;Util;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/computeNewCapacity.adoc[`computeNewCapacity`] 
| Return the capacity to be used to contain data having the specified `newLength` when the current capacity is the specified `currentCapacity`&period; The returned value may be larger than `newLength` to allow for growth without the need for reallocation&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_GEOMETRIC_GROWTH_FACTOR.adoc[`k&lowbar;GEOMETRIC&lowbar;GROWTH&lowbar;FACTOR`] 
| Factor by which the internal buffer grows geometrically&period;
| xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_INITIAL_BUFFER_SIZE.adoc[`k&lowbar;INITIAL&lowbar;BUFFER&lowbar;SIZE`] 
| Default initial buffer size&period;
| xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_MAX_GEOMETRIC_GROWTH_LENGTH.adoc[`k&lowbar;MAX&lowbar;GEOMETRIC&lowbar;GROWTH&lowbar;LENGTH`] 
| Maximum length for geometric buffer growth&period;
|===



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