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.

Synopsis

Declared in <bdlbb_blob.h>

void
appendDataBuffer(bslmf::MovableRef<BlobBuffer> buffer);

Created with MrDocs