[#BloombergLP-bdlbb-BlobUtil-append-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::append
:relfileprefix: ../../../
:mrdocs:

Append a byte range from a contiguous address onto `dest`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
append(
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dest,
    char const* source,
    int offset,
    int length);
----

== Description

Append the specified `length` bytes starting from the specified `offset` from the specified `source` address to the specified `dest`&period; The behavior of this function is undefined unless the range `&lsqb;source &plus; offset, source &plus; offset &plus; length)&rsqb;` represents a readable sequence of memory, and `length &lt;&equals; dest&hyphen;&gt;totalSize() &hyphen; dest&hyphen;&gt;length()` or `0 !&equals; dest&hyphen;&gt;factory()`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| destination blob
| *source*
| contiguous source address
| *offset*
| starting byte offset in `source`
| *length*
| number of bytes to append
|===


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