[#BloombergLP-bdlbb-BlobUtil-erase] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::xref:BloombergLP/bdlbb/BlobUtil.adoc[BlobUtil]::erase :relfileprefix: ../../../ :mrdocs: Erase a byte range from the specified blob. == Synopsis Declared in `<bdlbb_blobutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void erase( xref:BloombergLP/bdlbb/Blob.adoc[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 [cols="1,4"] |=== | Name| Description | *blob* | blob from which bytes are erased | *offset* | starting byte offset of the erased range | *length* | number of bytes to erase |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#