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

Synopsis

Declared in <bdlbb_blob.h>

void
reset(
    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

Name

Description

buffer

shared pointer to the continuous memory block

size

number of bytes represented by this blob buffer

Created with MrDocs