BloombergLP::bdlbb::BlobUtil::prependDataBufferIfValid

prependDataBufferIfValid overloads

Synopses

Declared in <bdlbb_blobutil.h>

Prepend a moved data buffer to dest if size limits allow.

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

Prepend a data buffer to dest if size limits allow.

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

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
destdestination blob
bufferdata buffer to move-prepend