BloombergLP::bdlbb::BlobUtil::erase

Erase a byte range from the specified blob.

Synopsis

Declared in <bdlbb_blobutil.h>

static
void
erase(
    Blob* blob,
    int offset,
    int length);

Description

Erase the specified length bytes starting at the specified offset from the specified blob. The behavior is undefined unless offset >= 0, length >= 0, and offset + length <= blob->length().

Parameters

NameDescription
blobblob from which bytes are erased
offsetstarting byte offset of the erased range
lengthnumber of bytes to erase