BloombergLP::bdlbb::Blob

In-core container for BlobBuffer objects.

Synopsis

Declared in <bdlbb_blob.h>

class Blob;

Description

Blob is an in-core container for BlobBuffer objects. This class is exception-neutral with no guarantee of rollback: if an exception is thrown during the invocation of a method on a pre-existing instance, the container is left in a valid state, but its value is undefined. In no event is memory leaked.

Member Functions

NameDescription
Blob [constructor]Constructors
~Blob [destructor]Destroy this blob.
operator= Assignment operators
allocator Return the allocator used by this object to supply memory.
appendBuffer appendBuffer overloads
appendDataBuffer appendDataBuffer overloads
buffer Return a reference to the non-modifiable blob buffer at index.
factory Return the factory used by this object.
insertBuffer insertBuffer overloads
lastDataBufferLength Return the length of the last blob buffer in this blob, or 0 if this blob is of 0 length.
length Return the length of this blob.
moveAndAppendDataBuffers Append to this blob by moving the data buffers held by srcBlob.
moveBuffers Replace this blob's buffers by moving all buffers from srcBlob.
moveDataBuffers Replace this blob's buffers by moving the data buffers from srcBlob.
numBuffers Return the number of blob buffers held by this blob.
numDataBuffers Return the number of blob buffers containing data in this blob.
prependDataBuffer prependDataBuffer overloads
removeAll Remove all blob buffers from this blob, and set its length to 0.
removeBuffer Remove the buffer at the specified index from this blob.
removeBuffers Remove the specified numBuffers starting at the specified index.
removeUnusedBuffers Remove any unused capacity buffers from this blob.
replaceDataBuffer Replace the data buffer at the specified index with buffer.
reserveBufferCapacity Allocate capacity to store at least the specified numBuffers buffers.
setLength Set the length of this blob to the specified length.
swap Efficiently exchange the value of this object with that of other.
swapBufferRaw Swap the blob buffer at the specified index with srcBuffer.
totalSize Return the sum of the sizes of all blob buffers in this blob (i.e., the capacity of this blob).
trimLastDataBuffer Trim the last data buffer down to lastDataBufferLength().

Friends

NameDescription
BloombergLP::bdlbb::operator!=Return true if the specified lhs and rhs blobs do not have the same value.
BloombergLP::bdlbb::operator==Return true if the specified lhs and rhs blobs have the same value.

Non-Member Functions

NameDescription
swapEfficiently exchange the values of the specified a and b objects.