Replace the data buffer at the specified index with the specified buffer. The behavior is undefined unless 0 <= index < numDataBuffers() and the total size of the resulting blob does not exceed INT_MAX. Note that this operation is equivalent to: ` blob.removeBuffer(index); const int n = blob.length(); blob.insertBuffer(index, buffer); blob.setLength(n + buffer.size()); ` but is more efficient.

Synopsis

Declared in <bdlbb_blob.h>

void
replaceDataBuffer(
    int index,
    BlobBuffer const& buffer);

Created with MrDocs