[#BloombergLP-bdlbb-BlobBuffer-2constructor-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer]::BlobBuffer
:relfileprefix: ../../../
:mrdocs:

Create a blob buffer representing the specified `buffer` of the specified `size`&period; The behavior is undefined unless `0 &lt;&equals; size` and the `buffer` refers to a continuous block of memory of at least `size` bytes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BlobBuffer(
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;char&gt;] const& buffer,
    int size);
----


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