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

Concrete `BlobBufferFactory` that creates fixed&hyphen;size blob buffers&period;

== Synopsis

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

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

== Description

This `class` declares an implementation of `BlobBufferFactory` where each segment loaded to a `BlobBuffer` is created with a separate calls to the allocator specified at construction, or the default allocator is no allocator was specified&period;

== 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/SimpleBlobBufferFactory/2constructor.adoc[`SimpleBlobBufferFactory`]         [.small]#[constructor]#
| Create a factory that produces blob buffers of the specified size&period;
| xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/2destructor.adoc[`&#126;SimpleBlobBufferFactory`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this `SimpleBlobBufferFactory` object&period;
| xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/allocate-02.adoc[`allocate`] 
| `allocate` overloads
| xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/bufferSize.adoc[`bufferSize`] 
| Return the current size with which this factory will allocate buffers&period;
| xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/setBufferSize.adoc[`setBufferSize`] 
| Set the buffer size for future buffers created by this factory to the specified `bufferSize`&period;
| xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;SimpleBlobBufferFactory, UsesBslmaAllocator&gt;`] 
| Declare that this type is bitwise moveable&period;
|===



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