Prepend a moved data buffer to dest if size limits allow.
Synopsis
Declared in <bdlbb_blobutil.h>
static
int
prependDataBufferIfValid(
Blob* dest,
bslmf::MovableRef<BlobBuffer> buffer);
Description
Insert the specified move‐insertable buffer before the beginning of the specified dest if neither the resulting total size of dest nor its resulting total number of buffers exceeds INT_MAX. Return 0 on success, and a non‐zero value (with no effect) otherwise. The length of the dest is incremented by the length of the prepended buffer. In case of success the buffer is left in a valid but unspecified state.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
dest |
destination blob |
buffer |
data buffer to move‐prepend |
Created with MrDocs