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.

Create a blob buffer having the same value as the specified original blob buffer.

BlobBuffer(BlobBuffer const& original);

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.

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.

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.

BlobBuffer(
    bsl::shared_ptr<char> const& buffer,
    int size);

Created with MrDocs