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

Constructors

== Synopses

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

Create a blob buffer representing a null buffer&period; Note that the `size` and `data` methods of a default&hyphen;constructed blob buffer both return 0&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlbb/BlobBuffer/2constructor-01.adoc[BlobBuffer]();
----

[.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a blob buffer having the same value as the specified `original` blob buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0f.adoc[BlobBuffer](xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer] const& original);
----

[.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Create a blob buffer by moving from the specified `original` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0d1.adoc[BlobBuffer](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;BlobBuffer&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0d1.adoc[_» more&period;&period;&period;_]#

Create a blob buffer representing the specified moveable buffer of the specified size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlbb/BlobBuffer/2constructor-08.adoc[BlobBuffer](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;bsl::shared&lowbar;ptr&lt;char&gt;&gt;] buffer,
    int size);
----

[.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a blob buffer representing the specified buffer of the specified size&period;


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

[.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0b.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| blob buffer to copy
| *buffer*
| moveable shared pointer to the continuous memory block
| *size*
| number of bytes represented by this blob buffer
|===


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