[#BloombergLP-bdlbb-PooledBlobBufferFactory]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::PooledBlobBufferFactory
:relfileprefix: ../../
:mrdocs:

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

== Synopsis

Declared in `&lt;bdlbb&lowbar;pooledblobbufferfactory&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class PooledBlobBufferFactory
    : public xref:BloombergLP/bdlbb/BlobBufferFactory.adoc[BlobBufferFactory]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlbb/BlobBufferFactory.adoc[BlobBufferFactory]`
| This class defines a base&hyphen;level protocol for a `BlobBuffer` factory&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlbb/PooledBlobBufferFactory/2constructor-07.adoc[`PooledBlobBufferFactory`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlbb/PooledBlobBufferFactory/2destructor.adoc[`&#126;PooledBlobBufferFactory`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this factory&period; This operation releases all `BlobBuffer` objects allocated via this factory&period;
| xref:BloombergLP/bdlbb/PooledBlobBufferFactory/allocate.adoc[`allocate`]  [.small]#[virtual]#
| Allocate a new buffer with the buffer size specified at construction and load it into the specified `buffer`&period; Note that destruction of the `bdlbb&colon;&colon;PooledBlobBufferFactory` object releases all `BlobBuffer` objects allocated via this factory&period;
| xref:BloombergLP/bdlbb/PooledBlobBufferFactory/bufferSize.adoc[`bufferSize`] 
| Return the buffer size specified at construction of this factory&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
