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

`copy` overloads

== Synopses

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

Copy contiguous bytes into a blob at the specified destination offset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlbb/BlobUtil/copy-05.adoc[copy](
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dst,
    int dstOffset,
    char const* src,
    int length);
----

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

Copy a byte range from a blob into a contiguous destination buffer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlbb/BlobUtil/copy-0d.adoc[copy](
    char* dstBuffer,
    xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& srcBlob,
    int position,
    int length);
----

[.small]#xref:BloombergLP/bdlbb/BlobUtil/copy-0d.adoc[_» more&period;&period;&period;_]#

Copy a byte range from one blob into another at a destination offset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlbb/BlobUtil/copy-09.adoc[copy](
    xref:BloombergLP/bdlbb/Blob.adoc[Blob]* dst,
    int dstOffset,
    xref:BloombergLP/bdlbb/Blob.adoc[Blob] const& src,
    int srcOffset,
    int length);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dst*
| destination blob
| *dstOffset*
| starting byte offset in `dst`
| *src*
| contiguous source address
| *length*
| number of bytes to copy
| *dstBuffer*
| contiguous destination buffer
| *srcBlob*
| source blob
| *position*
| starting byte offset in `srcBlob`
| *srcOffset*
| starting byte offset in `src`
|===


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