Print a contiguous byte range as uppercase hex on a single line.
Declared in <bdlb_print.h>
static
std::ostream&
singleLineHexDump(
std::ostream& stream,
char const* begin,
char const* end);
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.
a reference to stream
| Name | Description |
|---|---|
| stream | the output stream |
| begin | pointer to the first byte |
| end | pointer past the last byte |