Append a range of buffers from source onto dest without copying.

Synopsis

Declared in <bdlbb_blobutil.h>

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

Description

Append the specified length bytes from the specified offset in the specified source to the specified dest. Note that the data memory from source is not copied, but rather new BlobBuffer`s referring to the same data memory are created and appended to `dest, hence dest is not required to have a BlobBufferFactory.

Parameters

Name

Description

dest

destination blob

source

source blob whose buffers are shared into dest

offset

starting byte offset in source

length

number of bytes to append from source

Created with MrDocs