Utility for single-line hex dumping of a string to output streams.
Declared in <bdlb_print.h>
struct PrintStringSingleLineHexDumper;
This class has operator<< defined for it, so it can be used as follows: ` bsl::string str;
// ... fill up the str with some data ...
bsl::cout << PrintStringSingleLineHexDumper(str.c_str(), str.size()) << bsl::endl; `
| Name | Description |
|---|---|
PrintStringSingleLineHexDumper [constructor] | Create a single-line hex dumper for the specified data of the specified length. |
| Name | Description |
|---|---|
d_data_p | address of data to hex dump |
d_length | length in bytes of data to hex dump |