[#BloombergLP-bdlbb-BlobUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::BlobUtil :relfileprefix: ../../ :mrdocs: This `struct` is a namespace for a collection of static methods used for manipulating and accessing `Blob` objects. == Synopsis Declared in `<bdlbb_blobutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BlobUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlbb/BlobUtil/append-09.adoc[`append`] | `append` overloads | xref:BloombergLP/bdlbb/BlobUtil/appendBufferIfValid-07.adoc[`appendBufferIfValid`] | `appendBufferIfValid` overloads | xref:BloombergLP/bdlbb/BlobUtil/appendDataBufferIfValid-0c.adoc[`appendDataBufferIfValid`] | `appendDataBufferIfValid` overloads | xref:BloombergLP/bdlbb/BlobUtil/appendWithCapacityBuffer.adoc[`appendWithCapacityBuffer`] | Append bytes to `dest`, preferring existing then spare capacity. | xref:BloombergLP/bdlbb/BlobUtil/asciiDump-0a.adoc[`asciiDump`] | `asciiDump` overloads | xref:BloombergLP/bdlbb/BlobUtil/compare.adoc[`compare`] | Compare the data stored by two blobs lexicographically. | xref:BloombergLP/bdlbb/BlobUtil/copy-06.adoc[`copy`] | `copy` overloads | xref:BloombergLP/bdlbb/BlobUtil/erase.adoc[`erase`] | Erase a byte range from the specified blob. | xref:BloombergLP/bdlbb/BlobUtil/findBufferIndexAndOffset.adoc[`findBufferIndexAndOffset`] | Return the buffer index and in‐buffer offset for a blob position. | xref:BloombergLP/bdlbb/BlobUtil/getContiguousDataBuffer.adoc[`getContiguousDataBuffer`] | Grow a blob and return contiguous storage for the newly added bytes. | xref:BloombergLP/bdlbb/BlobUtil/getContiguousRangeOrCopy.adoc[`getContiguousRangeOrCopy`] | Return a contiguous view of blob data, copying into a buffer if needed. | xref:BloombergLP/bdlbb/BlobUtil/hexDump-0f.adoc[`hexDump`] | `hexDump` overloads | xref:BloombergLP/bdlbb/BlobUtil/insert-0e.adoc[`insert`] | `insert` overloads | xref:BloombergLP/bdlbb/BlobUtil/insertBufferIfValid-0f.adoc[`insertBufferIfValid`] | `insertBufferIfValid` overloads | xref:BloombergLP/bdlbb/BlobUtil/padToAlignment.adoc[`padToAlignment`] | Pad a blob so its length is a multiple of the given alignment. | xref:BloombergLP/bdlbb/BlobUtil/prependDataBufferIfValid-0b.adoc[`prependDataBufferIfValid`] | `prependDataBufferIfValid` overloads | xref:BloombergLP/bdlbb/BlobUtil/prependWithCapacityBuffer.adoc[`prependWithCapacityBuffer`] | Prepend bytes to `dest`, preferring existing then spare capacity. | xref:BloombergLP/bdlbb/BlobUtil/read.adoc[`read`] | Read bytes from a stream into a blob. | xref:BloombergLP/bdlbb/BlobUtil/write-0cc.adoc[`write`] | `write` overloads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#