BloombergLP::bdlma::BufferedSequentialPool::BufferedSequentialPool

Create a buffered sequential pool with growth limited to maxBufferSize and the specified alignment strategy.

Synopsis

Declared in <bdlma_bufferedsequentialpool.h>

BufferedSequentialPool(
    char* buffer,
    bsls::Types::size_type size,
    bsls::Types::size_type maxBufferSize,
    bsls::Alignment::Strategy alignmentStrategy,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
bufferexternal buffer from which to allocate
sizesize in bytes of buffer
maxBufferSizemaximum dynamically allocated buffer size in bytes
alignmentStrategystrategy used to align allocated memory blocks
basicAllocatormemory allocator; null uses the default