[#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. == Synopsis Declared in `<bdlsb_memoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity(std::size_t numCharacters); ---- == Description Reserve sufficient internal capacity to store at least the specified `numCharacters` characters without reallocation. Note that if the storage size specified is less than the number of characters already in the buffer, this method has no effect. == Parameters [cols="1,4"] |=== | Name| Description | *numCharacters* | minimum capacity to reserve |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#