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);

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

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

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);

Parameters

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

Created with MrDocs