BloombergLP::bdlb::Print::singleLineHexDump

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

NameDescription
streamthe output stream
bufferthe memory buffer to dump
lengththe length of buffer in bytes