BloombergLP::bdlbb::SimpleBlobBufferFactory::SimpleBlobBufferFactory

Create a factory that produces blob buffers of the specified size.

Synopsis

Declared in <bdlbb_simpleblobbufferfactory.h>

explicit
SimpleBlobBufferFactory(
    int bufferSize,
    bslma::Allocator* basicAllocator = 0);

Description

Create a SimpleBlobBufferFactory object that will create blob buffers of specified length bufferSize. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
bufferSizelength of each blob buffer created by this factory
basicAllocatormemory allocator; null uses the default