Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address.
More...
#include <applog.h>
|
| HEXdump (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.
|
|
|
std::string | _str |
| output string
|
|
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......./...
◆ HEXdump()
ost::HEXdump::HEXdump |
( |
const unsigned char * |
buffer, |
|
|
int |
buff_len, |
|
|
int |
max_len = 200 |
|
) |
| |
HEXdump constructor.
- Parameters
-
buffer | 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. |
◆ ~HEXdump()
virtual ost::HEXdump::~HEXdump |
( |
| ) |
|
|
inlinevirtual |
◆ c_str()
const char * ost::HEXdump::c_str |
( |
| ) |
const |
|
inline |
const char* cast provided for conveneince.
◆ str()
std::string ost::HEXdump::str |
( |
| ) |
|
|
inline |
string cast provided for conveneince.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const HEXdump & |
hd |
|
) |
| |
|
friend |
operator <<
- Parameters
-
- Returns
- application logger stream
◆ _str
std::string ost::HEXdump::_str |
|
protected |
The documentation for this class was generated from the following file: