[#BloombergLP-bdlsb-MemOutStreamBuf-reserveCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/MemOutStreamBuf.adoc[MemOutStreamBuf]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

Reserve capacity for at least the specified number of characters&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reserveCapacity(std::size&lowbar;t numCharacters);
----

== Description

Reserve sufficient internal capacity to store at least the specified `numCharacters` characters without reallocation&period; Note that if the storage size specified is less than the number of characters already in the buffer, this method has no effect&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numCharacters*
| minimum capacity to reserve
|===


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