BloombergLP::bdlbb::BlobBuffer::BlobBuffer

Create a blob buffer representing the specified buffer of the specified size.

Synopsis

Declared in <bdlbb_blob.h>

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

Description

The behavior is undefined unless 0 <= size and the buffer refers to a continuous block of memory of at least size bytes.

Parameters

NameDescription
buffershared pointer to the continuous memory block
sizenumber of bytes represented by this blob buffer