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

Append the specified `buffer` after the last _data_ buffer of the specified `dest` if neither the resulting total size of `dest` nor its resulting total number of buffers exceeds `INT&lowbar;MAX`&period; Return 0 on success, and a non&hyphen;zero value (with no effect) otherwise&period; The last data buffer of the `dest` is trimmed, if necessary&period; The length of the `dest` is incremented by the size of `buffer`&period;

== Synopsis

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

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


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