Produces a dump of a buffer in a hexdump way with its code Ascii translation and relative buffer address.
More...
#include <applog.h>
Public Member Functions |
char * | c_str () |
| const char* cast provided for conveneince.
|
| HEXdump (unsigned char *buffer, int buff_len, int max_len=200) |
| HEXdump constructor.
|
std::string | str () |
| string cast provided for conveneince.
|
virtual | ~HEXdump () |
| HEXdump destructor.
|
Protected Attributes |
std::string | _str |
| output string
|
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....../...
Definition at line 69 of file applog.h.
Constructor & Destructor Documentation
ost::HEXdump::HEXdump |
( |
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. |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
HEXdump & |
hd |
|
) |
| |
|
friend |
operator <<
- Parameters
-
- Returns
- application logger stream
Definition at line 116 of file applog.h.
The documentation for this class was generated from the following file: