BloombergLP::bdlbb::BlobUtil::copy

copy overloads

Synopses

Declared in <bdlbb_blobutil.h>

Copy contiguous bytes into a blob at the specified destination offset.

static
void
copy(
    Blob* dst,
    int dstOffset,
    char const* src,
    int length);
» more...

Copy a byte range from a blob into a contiguous destination buffer.

static
void
copy(
    char* dstBuffer,
    Blob const& srcBlob,
    int position,
    int length);
» more...

Copy a byte range from one blob into another at a destination offset.

static
void
copy(
    Blob* dst,
    int dstOffset,
    Blob const& src,
    int srcOffset,
    int length);
» more...

Parameters

NameDescription
dstdestination blob
dstOffsetstarting byte offset in dst
srccontiguous source address
lengthnumber of bytes to copy
dstBuffercontiguous destination buffer
srcBlobsource blob
positionstarting byte offset in srcBlob
srcOffsetstarting byte offset in src