BloombergLP::bdlbb::PooledBlobBufferFactory

This class implements the BlobBufferFactory protocol and provides a mechanism for allocating BlobBuffer objects of a fixed size passed at construction.

Synopsis

Declared in <bdlbb_pooledblobbufferfactory.h>

class PooledBlobBufferFactory
    : public BlobBufferFactory

Base Classes

NameDescription
BlobBufferFactoryThis class defines a base-level protocol for a BlobBuffer factory.

Member Functions

NameDescription
PooledBlobBufferFactory [constructor]Constructors
~PooledBlobBufferFactory [destructor] [virtual]Destroy this factory. This operation releases all BlobBuffer objects allocated via this factory.
allocate [virtual]Allocate a new buffer with the buffer size specified at construction and load it into the specified buffer. Note that destruction of the bdlbb::PooledBlobBufferFactory object releases all BlobBuffer objects allocated via this factory.
bufferSize Return the buffer size specified at construction of this factory.