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