BloombergLP::bdlbb::Blob::Blob

Create a blob that holds the same buffers as original, with a factory.

Synopsis

Declared in <bdlbb_blob.h>

Blob(
    Blob const& original,
    BlobBufferFactory* factory,
    bslma::Allocator* basicAllocator = 0);

Description

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.

Parameters

NameDescription
originalblob whose buffers are shared
factoryfactory used to allocate blob buffers
basicAllocatorallocator used to supply memory