|
libintrovirt v0.57.4
IntroVirt introspection library
|
A class for outputting formatted hex dumps. More...
#include <HexDump.hh>
Public Member Functions | |
| void | write (std::ostream &os=std::cout) const |
| Write the formatted hex output. | |
| HexDump (const void *buf, std::size_t len, std::size_t start_address=0, std::string prepend="") | |
| Construct a new HexDump object using the given buffer. | |
| HexDump (const guest_ptr< void > &ptr, size_t len, std::string prepend="") | |
| Construct a HexDump object using guest memory at the specified address. | |
A class for outputting formatted hex dumps.
| introvirt::HexDump::HexDump | ( | const void * | buf, |
| std::size_t | len, | ||
| std::size_t | start_address = 0, |
||
| std::string | prepend = "" |
||
| ) |
Construct a new HexDump object using the given buffer.
| buf | The buffer to read from |
| len | The number of bytes to read |
| start_address | The address to label the output data as |
| prepend | A prefix to add before each line |
| introvirt::HexDump::HexDump | ( | const guest_ptr< void > & | ptr, |
| size_t | len, | ||
| std::string | prepend = "" |
||
| ) |
Construct a HexDump object using guest memory at the specified address.
| ptr | The address to read |
| len | The number of bytes to read |
| prepend | A prefix to add before each line |
| void introvirt::HexDump::write | ( | std::ostream & | os = std::cout | ) | const |
Write the formatted hex output.
| os | The output stream to write to |