[#BloombergLP-bdlbb-Blob-appendDataBuffer-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/Blob.adoc[Blob]::appendDataBuffer :relfileprefix: ../../../ :mrdocs: `appendDataBuffer` overloads == Synopses Declared in `<bdlbb_blob.h>` Append the specified move‐insertable `buffer` after the last _data_ buffer of this blob; the last data buffer is trimmed, if necessary. The `buffer` is left in a valid but unspecified state. The length of this blob is incremented by the size of `buffer`. The behavior is undefined unless neither the total size of the resulting blob nor its total number of buffers exceeds `INT_MAX`. Note that this operation is equivalent to: ` const int n = blob.length(); blob.trimLastDataBuffer(); blob.insertBuffer(numDataBuffers(), MoveUtil::move(buffer)); blob.setLength(n + buffer.size()); ` but is more efficient. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlbb/Blob/appendDataBuffer-0e.adoc[appendDataBuffer](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<BlobBuffer>] buffer); ---- [.small]#xref:BloombergLP/bdlbb/Blob/appendDataBuffer-0e.adoc[_» more..._]# Append the specified `buffer` after the last _data_ buffer of this blob; the last data buffer is trimmed, if necessary. The length of this blob is incremented by the size of `buffer`. The behavior is undefined unless neither the total size of the resulting blob nor its total number of buffers exceeds `INT_MAX`. Note that this operation is equivalent to: ` const int n = blob.length(); blob.trimLastDataBuffer(); blob.insertBuffer(numDataBuffers(), buffer); blob.setLength(n + buffer.size()); ` but is more efficient. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlbb/Blob/appendDataBuffer-05.adoc[appendDataBuffer](xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer] const& buffer); ---- [.small]#xref:BloombergLP/bdlbb/Blob/appendDataBuffer-05.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#