[#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 `<bdlbb_blob.h>` Create a blob buffer representing a null buffer. Note that the `size` and `data` methods of a default‐constructed blob buffer both return 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlbb/BlobBuffer/2constructor-01.adoc[BlobBuffer](); ---- [.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-01.adoc[_» more..._]# Create a blob buffer having the same value as the specified `original` blob buffer. [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..._]# Create a blob buffer object having the same value as the specified `original` object by moving the contents of `original` to the newly‐created object. `original` is left in a valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0d1.adoc[BlobBuffer](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<BlobBuffer>] original) noexcept; ---- [.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0d1.adoc[_» more..._]# Create a blob buffer representing the specified moveable `buffer` of the specified `size`. The behavior is undefined unless `0 <= size` and the `buffer` refers to a continuous block of memory of at least `size` bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlbb/BlobBuffer/2constructor-08.adoc[BlobBuffer]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<bsl::shared_ptr<char>>] buffer, int size); ---- [.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-08.adoc[_» more..._]# Create a blob buffer representing the specified `buffer` of the specified `size`. The behavior is undefined unless `0 <= size` and the `buffer` refers to a continuous block of memory of at least `size` bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0b.adoc[BlobBuffer]( xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<char>] const& buffer, int size); ---- [.small]#xref:BloombergLP/bdlbb/BlobBuffer/2constructor-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#