BloombergLP::bdlbb::BlobUtil::asciiDump

Write an ascii dump of a blob byte range to the stream.

Synopsis

Declared in <bdlbb_blobutil.h>

static
std::ostream&
asciiDump(
    std::ostream& stream,
    Blob const& source,
    int offset,
    int length);

Description

Write to the specified stream an ascii dump of the specified length bytes of the specified source starting at the specified offset, and return a reference to the modifiable stream. The behavior is undefined unless 0 <= offset, 0 <= length, length <= source.length() and offset <= source.length() - length.

Return Value

reference to the modifiable stream

Parameters

NameDescription
streamoutput stream
sourceblob to dump
offsetstarting byte offset in source
lengthnumber of bytes to dump