write overloads

Synopses

Declared in <bdlbb_blobutil.h>

Write the entire source blob to a stream.

template<class STREAM>
static
STREAM&
write(
    STREAM& stream,
    Blob const& source);

Write a byte range from a blob to a stream.

template<class STREAM>
static
int
write(
    STREAM& stream,
    Blob const& source,
    int sourcePosition,
    int numBytes);

Return Value

  • reference to the modifiable stream

  • 0 on success, and a non‐zero value otherwise

Parameters

Name

Description

stream

output stream

source

blob to write

sourcePosition

starting byte offset in source

numBytes

number of bytes to write

Created with MrDocs