Utility functions for MemOutStreamBuf buffer management.

Synopsis

Declared in <bdlsb_memoutstreambuf.h>

struct MemOutStreamBuf_Util;

Static Member Functions

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.

Static Data Members

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.

Created with MrDocs