Append a byte range from a contiguous address onto dest.

Synopsis

Declared in <bdlbb_blobutil.h>

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

Description

Append the specified length bytes starting from the specified offset from the specified source address to the specified dest. The behavior of this function is undefined unless the range [source + offset, source + offset + length)] represents a readable sequence of memory, and length <= dest‐>totalSize() ‐ dest‐>length() or 0 != dest‐>factory().

Parameters

Name

Description

dest

destination blob

source

contiguous source address

offset

starting byte offset in source

length

number of bytes to append

Created with MrDocs