Constructors
Declared in <bdlbb_blob.h>
Create a blob object having the same value as the specified original object by moving the contents of original to the newly-created object. The allocator associated with original is propagated for use in the newly-created object. original is left in a valid but unspecified state.
Blob(bslmf::MovableRef<Blob> original) noexcept;
» more...
Create an empty blob having no factory to allocate blob buffers. Since there is no factory, the behavior is undefined if the length of the blob is set beyond the total size. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
Blob(bslma::Allocator* basicAllocator = 0);
» more...
Create a blob object having the same value as the specified original object that uses the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The contents of original are moved to the newly-created object. original is left in a valid but unspecified state.
Blob(
bslmf::MovableRef<Blob> original,
bslma::Allocator* basicAllocator);
» more...
Create a blob that holds the same buffers as the specified original blob, and has no factory to allocate blob buffers. Since there is no factory, the behavior is undefined if the length of the blob is set beyond the total size. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Blob(
Blob const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Create an empty blob using the specified factory to allocate blob buffers. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
Blob(
BlobBufferFactory* factory,
bslma::Allocator* basicAllocator = 0);
» more...
Create a blob that holds the same buffers as the specified original blob, and uses the specified factory to allocate blob buffers. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Blob(
Blob const& original,
BlobBufferFactory* factory,
bslma::Allocator* basicAllocator = 0);
» more...
Create a blob that initially holds the specified numBuffers buffers referenced by the specified buffers, and uses the specified factory to allocate blob buffers. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
Blob(
BlobBuffer const* buffers,
int numBuffers,
BlobBufferFactory* factory,
bslma::Allocator* basicAllocator = 0);
» more...