BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlsb::MemOutStreamBuf_Util Struct Reference

#include <bdlsb_memoutstreambuf.h>

Static Public Member Functions

static bsl::size_t computeNewCapacity (bsl::size_t newLength, bsl::size_t currentCapacity)
 

Static Public Attributes

static const bsl::size_t k_INITIAL_BUFFER_SIZE = 256
 
static const bsl::size_t k_GEOMETRIC_GROWTH_FACTOR = 2
 
static const bsl::size_t k_MAX_GEOMETRIC_GROWTH_LENGTH
 

Member Function Documentation

◆ computeNewCapacity()

static bsl::size_t bdlsb::MemOutStreamBuf_Util::computeNewCapacity ( bsl::size_t  newLength,
bsl::size_t  currentCapacity 
)
static

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.

Member Data Documentation

◆ k_GEOMETRIC_GROWTH_FACTOR

const bsl::size_t bdlsb::MemOutStreamBuf_Util::k_GEOMETRIC_GROWTH_FACTOR = 2
static

◆ k_INITIAL_BUFFER_SIZE

const bsl::size_t bdlsb::MemOutStreamBuf_Util::k_INITIAL_BUFFER_SIZE = 256
static

◆ k_MAX_GEOMETRIC_GROWTH_LENGTH

const bsl::size_t bdlsb::MemOutStreamBuf_Util::k_MAX_GEOMETRIC_GROWTH_LENGTH
static

The documentation for this struct was generated from the following file: