Constructors

Synopses

Declared in <bdlbb_blob.h>

Create a blob by moving from the specified original object.

Blob(bslmf::MovableRef<Blob> original) noexcept;

Create an empty blob having no factory to allocate blob buffers.

explicit
Blob(bslma::Allocator* basicAllocator = 0);

Create a blob by moving from original, using the specified allocator.

Blob(
    bslmf::MovableRef<Blob> original,
    bslma::Allocator* basicAllocator);

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

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

Create an empty blob using the specified factory to allocate buffers.

explicit
Blob(
    BlobBufferFactory* factory,
    bslma::Allocator* basicAllocator = 0);

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

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

Create a blob that initially holds the specified buffers.

Blob(
    BlobBuffer const* buffers,
    int numBuffers,
    BlobBufferFactory* factory,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

original

blob to move from

basicAllocator

allocator used to supply memory

factory

factory used to allocate blob buffers

buffers

array of blob buffers to hold initially

numBuffers

number of buffers in buffers

Created with MrDocs