[#BloombergLP-bdlbb-Blob-replaceDataBuffer] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/Blob.adoc[Blob]::replaceDataBuffer :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void replaceDataBuffer( int index, xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer] const& buffer); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#