BloombergLP::bdlbb::BlobUtil::insertBufferIfValid

insertBufferIfValid overloads

Synopses

Declared in <bdlbb_blobutil.h>

Insert a moved buffer at an index in dest if size limits allow.

static
int
insertBufferIfValid(
    Blob* dest,
    int index,
    bslmf::MovableRef<BlobBuffer> buffer);
» more...

Insert a buffer at an index in dest if size limits allow.

static
int
insertBufferIfValid(
    Blob* dest,
    int index,
    BlobBuffer const& buffer);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
destdestination blob
indexbuffer index at which to insert
bufferbuffer to move-insert