#include <bdlsb_memoutstreambuf.h>
|
| static bsl::size_t | computeNewCapacity (bsl::size_t newLength, bsl::size_t currentCapacity) |
| |
◆ 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.
◆ 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: