#include <HexDumpBuffer.h>
Inheritance diagram for oasys::HexDumpBuffer:
Each line includes the offset, plus 16 characters from the file as well as their ascii values (or . for unprintable characters).
For example:
00000000: 5468 6973 2069 7320 6865 786c 2d6d 6f64 This is hexl-mod 00000010: 652e 2020 4561 6368 206c 696e 6520 7265 e. Each line re 00000020: 7072 6573 656e 7473 2031 3620 6279 7465 presents 16 byte 00000030: 7320 6173 2068 6578 6164 6563 696d 616c s as hexadecimal 00000040: 2041 5343 4949 0a61 6e64 2070 7269 6e74 ASCII.and print
Definition at line 39 of file HexDumpBuffer.h.
Public Member Functions | |
HexDumpBuffer (size_t initsz=256, const char *initstr=0) | |
Constructor. | |
void | hexify () |
Convert the internal buffer (accumulated into the StringBuffer) into hex dump output format. |
oasys::HexDumpBuffer::HexDumpBuffer | ( | size_t | initsz = 256 , |
|
const char * | initstr = 0 | |||
) | [inline] |
Constructor.
initsz | the initial buffer size | |
initstr | the initial buffer contents |
Definition at line 47 of file HexDumpBuffer.h.
void oasys::HexDumpBuffer::hexify | ( | ) |
Convert the internal buffer (accumulated into the StringBuffer) into hex dump output format.
Definition at line 24 of file HexDumpBuffer.cc.
References oasys::StringBuffer::append(), oasys::StringBuffer::appendf(), oasys::StringBuffer::data(), oasys::StringBuffer::length(), and oasys::StringBuffer::trim().
Referenced by dtn::BundleCommand::exec().