Quick Links:

bal | bbl | bdl | bsl

Public Member Functions | Public Attributes

bdlb::PrintStringHexDumper Struct Reference

#include <bdlb_print.h>

List of all members.

Public Member Functions

 PrintStringHexDumper (const char *data, int length)

Public Attributes

const char * d_data_p
int d_length

Detailed Description

Utility for hex dumping a blob to standard output streams. 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;

See Component bdlb_print


Constructor & Destructor Documentation

bdlb::PrintStringHexDumper::PrintStringHexDumper ( const char *  data,
int  length 
)

Create a PrintStringHexDumper object that can insert to an output stream a formated (possibly multi-lined) hexadecimal representation the specified data of the specified length.


Member Data Documentation


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