Utility for single‐line hex dumping of a string to output streams.

Synopsis

Declared in <bdlb_print.h>

struct PrintStringSingleLineHexDumper;

Description

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; `

Member Functions

Name

Description

PrintStringSingleLineHexDumper [constructor]

Create a single‐line hex dumper for the specified data of the specified length.

Data Members

Name

Description

d_data_p

address of data to hex dump

d_length

length in bytes of data to hex dump

Created with MrDocs