BloombergLP::ball::FixedSizeRecordBuffer::FixedSizeRecordBuffer

Create a limited record buffer such that at any time the sum of sizes of all records contained plus the amount of memory allocated by this object is guaranteed to be less than or equal to the specified maxTotalSize. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless maxTotalSize > 0.

Synopsis

Declared in <ball_fixedsizerecordbuffer.h>

FixedSizeRecordBuffer(
    int maxTotalSize,
    bslma::Allocator* basicAllocator = 0);