[#BloombergLP-bdlbb-BlobUtil-prependDataBufferIfValid-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::prependDataBufferIfValid
:relfileprefix: ../../../
:mrdocs:

`prependDataBufferIfValid` overloads

== Synopses

Declared in `&lt;bdlbb&lowbar;blobutil&period;h&gt;`

Prepend a moved data buffer to `dest` if size limits allow&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlbb/BlobUtil/prependDataBufferIfValid-03.adoc[prependDataBufferIfValid](
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dest,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;BlobBuffer&gt;] buffer);
----

[.small]#xref:BloombergLP/bdlbb/BlobUtil/prependDataBufferIfValid-03.adoc[_» more&period;&period;&period;_]#

Prepend a data buffer to `dest` if size limits allow&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/bdlbb/BlobUtil/prependDataBufferIfValid-08.adoc[prependDataBufferIfValid](
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dest,
    xref:BloombergLP/bdlbb/BlobBuffer.adoc[BlobBuffer] const& buffer);
----

[.small]#xref:BloombergLP/bdlbb/BlobUtil/prependDataBufferIfValid-08.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| destination blob
| *buffer*
| data buffer to move&hyphen;prepend
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
