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

Name

Description

BlobBufferFactory

This class defines a base‐level protocol for a BlobBuffer factory.

Member Functions

Name

Description

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.

Created with MrDocs