Write a hex dump of a blob byte range to the stream.

Synopsis

Declared in <bdlbb_blobutil.h>

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

Description

Write to the specified stream a hexdump 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

Name

Description

stream

output stream

source

blob to dump

offset

starting byte offset in source

length

number of bytes to dump

Created with MrDocs