Utility for hex dumping a blob to standard output streams.
Declared in <bdlb_print.h>
struct PrintStringHexDumper;
This class has operator<< defined for it, so it can be used as follows: ` bsl::vector<char> blob; blob.resize(1024);
// ... fill up the blob with some data ...
bsl::cout << PrintStringHexDumper(blob.data(), blob.size()) << bsl::endl; `
| Name | Description |
|---|---|
PrintStringHexDumper [constructor] | Create a 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 |