ost::HEXdump - Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative
Contents
Constructor & Destructor Documentation
ost::HEXdump::HEXdump(constunsignedchar*buffer,intbuff_len,intmax_len=200)HEXdump constructor.
Parametersbuffer buffer to be 'hexdumped'
buff_len buffer length
max_len max number of bytes to be 'hexdumped'. Usefull to truncate output. mas_len=0 does prints all.
virtualost::HEXdump::~HEXdump()[inline],[virtual]HEXdump destructor.
Detailed Description
Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address.
For instance: 0000000 - 77 98 21 49 0e 00 05 00 40 1c 01 1c 2f 00 00 00 w.!I......./...
Member Data Documentation
std::stringost::HEXdump::_str[protected]
output string
Member Function Documentation
constchar*ost::HEXdump::c_str()const[inline]
const char* cast provided for conveneince.
std::stringost::HEXdump::str()[inline]
string cast provided for conveneince.
Name
ost::HEXdump - Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative
buffer address.
Synopsis
#include <applog.h>
PublicMemberFunctionsHEXdump (const unsigned char *buffer, int buff_len, int max_len=200)
HEXdump constructor.
virtual ~HEXdump ()
HEXdump destructor.
const char * c_str () const
const char* cast provided for conveneince.
std::string str ()
string cast provided for conveneince.
ProtectedAttributes
std::string _str
output string
Friends
std::ostream & operator<< (std::ostream &out, const HEXdump &hd)
operator <<
