append overloads

Synopses

Declared in <bdlbb_blobutil.h>

Append all buffers from source onto dest without copying data.

static
void
append(
    Blob* dest,
    Blob const& source);

Append fill bytes to bring dest to a greater length.

static
void
append(
    Blob* dest,
    int length,
    char fill);

Append buffers from source starting at offset onto dest.

static
void
append(
    Blob* dest,
    Blob const& source,
    int offset);

Append all of source onto dest (allocator unused).

static
void
append(
    Blob* dest,
    Blob const& source,
    bslma::Allocator* basicAllocator);

Append bytes from a contiguous address onto dest.

static
void
append(
    Blob* dest,
    char const* source,
    int length);

Append a range of buffers from source onto dest without copying.

static
void
append(
    Blob* dest,
    Blob const& source,
    int offset,
    int length);

Append from offset in source onto dest (allocator unused).

static
void
append(
    Blob* dest,
    Blob const& source,
    int offset,
    bslma::Allocator* basicAllocator);

Append a byte range from a contiguous address onto dest.

static
void
append(
    Blob* dest,
    char const* source,
    int offset,
    int length);

Append a range from source onto dest (allocator unused).

static
void
append(
    Blob* dest,
    Blob const& source,
    int offset,
    int length,
    bslma::Allocator* basicAllocator);

Parameters

Name

Description

dest

destination blob

source

source blob whose buffers are shared into dest

length

number of fill bytes to append

fill

byte value used for each appended byte

offset

starting byte offset in source

basicAllocator

unused allocator argument

Created with MrDocs