BloombergLP::bdlbb::BlobUtil::append

Append bytes from a contiguous address onto dest.

Synopsis

Declared in <bdlbb_blobutil.h>

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

Description

Append the specified length bytes starting from the specified source address to the specified dest. The behavior is undefined unless the range [source, source + length)] is valid memory, and length <= dest->totalSize() - dest->length() or 0 != dest->factory().

Parameters

NameDescription
destdestination blob
sourcecontiguous source address
lengthnumber of bytes to append