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.
BlobBuffer();
Create a blob buffer having the same value as the specified original blob buffer.
BlobBuffer(BlobBuffer const& original);
Create a blob buffer by moving from the specified original object.
BlobBuffer(bslmf::MovableRef<BlobBuffer> original) noexcept;
Create a blob buffer representing the specified moveable buffer of the specified size.
BlobBuffer(
bslmf::MovableRef<bsl::shared_ptr<char>> buffer,
int size);
Create a blob buffer representing the specified buffer of the specified size.
BlobBuffer(
bsl::shared_ptr<char> const& buffer,
int size);
Parameters
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 |
Created with MrDocs