BloombergLP::bdlbb::BlobBuffer::reset

Set this object to represent the specified moveable buffer of the specified size.

Synopsis

Declared in <bdlbb_blob.h>

void
reset(
    bslmf::MovableRef<bsl::shared_ptr<char>> 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
buffermoveable shared pointer to the continuous memory block
sizenumber of bytes represented by this blob buffer