BloombergLP::bdlbb::BlobUtil::insert

Insert a byte range from source into dest at destOffset.

Synopsis

Declared in <bdlbb_blobutil.h>

static
void
insert(
    Blob* dest,
    int destOffset,
    Blob const& source,
    int sourceOffset,
    int sourceLength);

Description

Insert the specified sourceLength bytes from the specified sourceOffset in the specified source to the specified destOffset in the specified dest.

Parameters

NameDescription
destdestination blob
destOffsetinsertion offset in dest
sourcesource blob
sourceOffsetstarting byte offset in source
sourceLengthnumber of bytes to insert from source