BloombergLP::bdlbb::BlobUtil::append

Append all buffers from source onto dest without copying data.

Synopsis

Declared in <bdlbb_blobutil.h>

static
void
append(
    Blob* dest,
    Blob const& source);

Description

Append the specified source to the specified dest. Note that the data memory from source is not copied, but rather new BlobBuffers referring to the same data memory are created and appended to dest, hence dest is not required to have a BlobBufferFactory.

Parameters

NameDescription
destdestination blob
sourcesource blob whose buffers are shared into dest