BloombergLP::bdlbb::Blob::swapBufferRaw

Swap the blob buffer at the specified index with srcBuffer.

Synopsis

Declared in <bdlbb_blob.h>

void
swapBufferRaw(
    int index,
    BlobBuffer* srcBuffer);

Description

The behavior is undefined unless 0 <= index < numBuffers() and srcBuffer->size() == buffer(index).size(). Note that other than the buffer swap the state of this object remains unchanged.

Parameters

NameDescription
indexposition of the buffer to swap
srcBufferaddress of the blob buffer to exchange with