BloombergLP::bdlb::Print::singleLineHexDump

singleLineHexDump overloads

Synopses

Declared in <bdlb_print.h>

Print to the specified stream the uppercase hex encoding of the byte sequence defined by the specified begin and end iterators into the specified stream, and return a reference providing modifiable access to stream. This function insulates clients from its implementation, but unlike the member template version (above), requires random access iterators of type const char *. The behavior is undefined unless both begin and end refer to the same block of contiguous memory, and begin <= end.

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

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.

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

Print to the specified stream the uppercase hex encoding of the byte sequence defined by the specified begin and end iterators of the parameterized INPUT_ITERATOR type, and return a reference providing modifiable access to stream. Note that INPUT_ITERATOR need not be random-access, i.e., it need support only increment (++) and equality comparison (==). See the non-template version of this function if insulation and/or code bloat are a concern.

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