BloombergLP::bdlbb::BlobUtil::write

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);
» more...

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);
» more...

Return Value

  • reference to the modifiable stream
  • 0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamoutput stream
sourceblob to write
sourcePositionstarting byte offset in source
numBytesnumber of bytes to write