Quick Links: |
#include <bdlb_print.h>
Public Member Functions | |
PrintStringSingleLineHexDumper (const char *data, int length) | |
Public Attributes | |
const char * | d_data_p |
int | d_length |
Utility for hex dumping a string with no extra formatting to standard output streams. 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;
bdlb::PrintStringSingleLineHexDumper::PrintStringSingleLineHexDumper | ( | const char * | data, | |
int | length | |||
) |
Create a PrintStringSingleLineHexDumper
object that can insert to an output stream a single-line hexadecimal representation the specified data
of the specified length
.
const char* bdlb::PrintStringSingleLineHexDumper::d_data_p |