BloombergLP::bdlsb::MemOutStreamBuf_Util

Utility functions for MemOutStreamBuf buffer management.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

struct MemOutStreamBuf_Util;

Static Member Functions

NameDescription
computeNewCapacity Return a suitable capacity for the specified length and capacity.

Static Data Members

NameDescription
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.