BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::PrintStringSingleLineHexDumper Struct Reference

#include <bdlb_print.h>

Public Member Functions

 PrintStringSingleLineHexDumper (const char *data, int length)
 

Public Attributes

const char * d_data_p
 
int d_length
 

Detailed Description

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:

// ... fill up the str with some data ...
bsl::cout
<< bsl::endl;
Definition bslstl_string.h:1281
const CHAR_TYPE * c_str() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:6705
size_type size() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:6592
Definition bdlb_print.h:326

Constructor & Destructor Documentation

◆ PrintStringSingleLineHexDumper()

bdlb::PrintStringSingleLineHexDumper::PrintStringSingleLineHexDumper ( const char *  data,
int  length 
)
inline

Create a PrintStringSingleLineHexDumper object that can insert to an output stream a single-line hexadecimal representation the specified data of the specified length.

Member Data Documentation

◆ d_data_p

const char* bdlb::PrintStringSingleLineHexDumper::d_data_p

◆ d_length

int bdlb::PrintStringSingleLineHexDumper::d_length

The documentation for this struct was generated from the following file: