[#BloombergLP-bdlsb-MemOutStreamBuf_Util] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::MemOutStreamBuf_Util :relfileprefix: ../../ :mrdocs: Utility functions for `MemOutStreamBuf` buffer management. == Synopsis Declared in `<bdlsb_memoutstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct MemOutStreamBuf_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`. The returned value may be larger than `newLength` to allow for growth without the need for reallocation. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_GEOMETRIC_GROWTH_FACTOR.adoc[`k_GEOMETRIC_GROWTH_FACTOR`] | Factor by which the internal buffer grows geometrically. | xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_INITIAL_BUFFER_SIZE.adoc[`k_INITIAL_BUFFER_SIZE`] | Default initial buffer size. | xref:BloombergLP/bdlsb/MemOutStreamBuf_Util/k_MAX_GEOMETRIC_GROWTH_LENGTH.adoc[`k_MAX_GEOMETRIC_GROWTH_LENGTH`] | Maximum length for geometric buffer growth. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#