Utility functions for MemOutStreamBuf buffer management.
Declared in <bdlsb_memoutstreambuf.h>
struct MemOutStreamBuf_Util;
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
k_GEOMETRIC_GROWTH_FACTOR | Factor by which the internal buffer grows geometrically. |
k_INITIAL_BUFFER_SIZE | Default initial buffer size. |
k_MAX_GEOMETRIC_GROWTH_LENGTH | Maximum length for geometric buffer growth. |