[#BloombergLP-bdlbb-SimpleBlobBufferFactory] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::SimpleBlobBufferFactory :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bdlbb_simpleblobbufferfactory.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class SimpleBlobBufferFactory : 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‐level protocol for a `BlobBuffer` factory. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/2constructor.adoc[`SimpleBlobBufferFactory`] [.small]#[constructor]# | 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. | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/2destructor.adoc[`~SimpleBlobBufferFactory`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this `SimpleBlobBufferFactory` object. | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/allocate-02.adoc[`allocate`] | Allocate a blob buffer from this blob buffer factory, and load it into the specified `buffer`. | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/bufferSize.adoc[`bufferSize`] | Return the current size with which this factory will allocate buffers. | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/setBufferSize.adoc[`setBufferSize`] | Set the buffer size for future buffers created by this factory to the specified `bufferSize`. | xref:BloombergLP/bdlbb/SimpleBlobBufferFactory/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<SimpleBlobBufferFactory, UsesBslmaAllocator>`] | Declare that this type is bitwise moveable. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#