BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlb::PrintStringSingleLineHexDumper Struct Reference

#include <bdlb_print.h>

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:1252
const CHAR_TYPE * c_str() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:7405
size_type size() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:7292
Definition bdlb_print.h:342

See bdlb_print

Public Member Functions

 PrintStringSingleLineHexDumper (const char *data, int length)
 

Public Attributes

const char * d_data_p
 
int d_length
 

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: