append overloads
Synopses
Declared in <bdlbb_blobutil.h>
Append the specified source to the specified dest. Note that the data memory from source is not copied, but rather new BlobBuffer`s referring to the same data memory are created and appended to `dest, hence dest is not required to have a BlobBufferFactory.
Append the specified length bytes to the specified dest, all new bytes are to be set to the specified fill. The behavior is undefined unless length <= dest‐>totalSize() ‐ dest‐>length() or 0 != dest‐>factory().
Append from the specified offset in the specified source to the specified dest. Note that the data memory from source is not copied, but rather new BlobBuffer`s referring to the same data memory are created and appended to `dest, hence dest is not required to have a BlobBufferFactory.
See the corresponding non‐deprecated append overload above. The allocator argument is unused.
static
void
append(
Blob* dest,
Blob const& source,
bslma::Allocator*);
Append the specified length bytes starting from the specified source address to the specified dest. The behavior is undefined unless the range [source, source + length)] is valid memory, and length <= dest‐>totalSize() ‐ dest‐>length() or 0 != dest‐>factory().
Append the specified length bytes from the specified offset in the specified source to the specified dest. Note that the data memory from source is not copied, but rather new BlobBuffer`s referring to the same data memory are created and appended to `dest, hence dest is not required to have a BlobBufferFactory.
See the corresponding non‐deprecated append overload above. The allocator argument is unused.
static
void
append(
Blob* dest,
Blob const& source,
int offset,
bslma::Allocator*);
Append the specified length bytes starting from the specified offset from the specified source address to the specified dest. The behavior of this function is undefined unless the range [source + offset, source + offset + length)] represents a readable sequence of memory, and length <= dest‐>totalSize() ‐ dest‐>length() or 0 != dest‐>factory().
See the corresponding non‐deprecated append overload above. The allocator argument is unused.
static
void
append(
Blob* dest,
Blob const& source,
int offset,
int length,
bslma::Allocator*);
Created with MrDocs