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
Name |
Description |
|
Constructors |
|
Destroy this blob. |
Assignment operators |
|
Return the allocator used by this object to supply memory. |
|
|
|
|
|
Return a reference to the non‐modifiable blob buffer at |
|
Return the factory used by this object. |
|
|
|
Return the length of the last blob buffer in this blob, or 0 if this blob is of 0 length. |
|
Return the length of this blob. |
|
Append to this blob by moving the data buffers held by |
|
Replace this blob's buffers by moving all buffers from |
|
Replace this blob's buffers by moving the data buffers from |
|
Return the number of blob buffers held by this blob. |
|
Return the number of blob buffers containing data in this blob. |
|
|
|
Remove all blob buffers from this blob, and set its length to 0. |
|
Remove the buffer at the specified |
|
Remove the specified |
|
Remove any unused capacity buffers from this blob. |
|
Replace the data buffer at the specified |
|
Allocate capacity to store at least the specified |
|
Set the length of this blob to the specified |
|
Efficiently exchange the value of this object with that of |
|
Swap the blob buffer at the specified |
|
Return the sum of the sizes of all blob buffers in this blob (i.e., the capacity of this blob). |
|
Trim the last data buffer down to |
Friends
Name |
Description |
Return |
|
Return |