BloombergLP::bdlbb::BlobUtil::appendWithCapacityBuffer

Append the specified length bytes from the specified source address to the specified dest. Use the existing capacity in dest first, followed by that in the buffer, and finally allocate from the blob buffer factory associated with the dest. Load any unused space into the specified buffer. The behavior is undefined unless the range [source, source + length)] represents a readable sequence of memory.

Synopsis

Declared in <bdlbb_blobutil.h>

static
void
appendWithCapacityBuffer(
    Blob* dest,
    BlobBuffer* buffer,
    char const* source,
    int length);