[#BloombergLP-bslx-ByteOutStream-reserveCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/ByteOutStream.adoc[ByteOutStream]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

Set the internal buffer size of this stream to be at least the specified `newCapacity` (in bytes)&period;

== Synopsis

Declared in `&lt;bslx&lowbar;byteoutstream&period;h&gt;`

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *newCapacity*
| minimum capacity, in bytes
|===


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