Print a buffer as uppercase hex on a single line.

Synopsis

Declared in <bdlb_print.h>

static
std::ostream&
singleLineHexDump(
    std::ostream& stream,
    char const* buffer,
    int length);

Description

Print to the specified stream the contents of the specified buffer having the specified length on a single line, and return a reference to the modifiable stream. The behavior is undefined unless 0 <= length.

Return Value

a reference to stream

Parameters

Name

Description

stream

the output stream

buffer

the memory buffer to dump

length

the length of buffer in bytes

Created with MrDocs