BloombergLP::bdlb::Print::singleLineHexDump

singleLineHexDump overloads

Synopses

Declared in <bdlb_print.h>

Print a contiguous byte range as uppercase hex on a single line.

static
std::ostream&
singleLineHexDump(
    std::ostream& stream,
    char const* begin,
    char const* end);
» more...

Print a buffer as uppercase hex on a single line.

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

Print a byte sequence as uppercase hex on a single line.

template<class INPUT_ITERATOR>
static
std::ostream&
singleLineHexDump(
    std::ostream& stream,
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end);
» more...

Return Value

a reference to stream

Parameters

NameDescription
streamthe output stream
beginpointer to the first byte
endpointer past the last byte
bufferthe memory buffer to dump
lengththe length of buffer in bytes