BloombergLP::bdlbb::BlobUtil

This struct is a namespace for a collection of static methods used for manipulating and accessing Blob objects.

Synopsis

Declared in <bdlbb_blobutil.h>

struct BlobUtil;

Static Member Functions

NameDescription
append append overloads
appendBufferIfValid appendBufferIfValid overloads
appendDataBufferIfValid appendDataBufferIfValid overloads
appendWithCapacityBuffer Append bytes to dest, preferring existing then spare capacity.
asciiDump asciiDump overloads
compare Compare the data stored by two blobs lexicographically.
copy copy overloads
erase Erase a byte range from the specified blob.
findBufferIndexAndOffset Return the buffer index and in-buffer offset for a blob position.
getContiguousDataBuffer Grow a blob and return contiguous storage for the newly added bytes.
getContiguousRangeOrCopy Return a contiguous view of blob data, copying into a buffer if needed.
hexDump hexDump overloads
insert insert overloads
insertBufferIfValid insertBufferIfValid overloads
padToAlignment Pad a blob so its length is a multiple of the given alignment.
prependDataBufferIfValid prependDataBufferIfValid overloads
prependWithCapacityBuffer Prepend bytes to dest, preferring existing then spare capacity.
read Read bytes from a stream into a blob.
write write overloads