Base Framework
|
Memory dump descriptor. More...
#include <base/mem/MemoryDump.h>
Inherits Object.
Public Types | |
enum | Option { HEADER = 1, REPEAT_HEADER = 2, ADDRESS = 4, OFFSET = 8, CHARS = 16 } |
Public Member Functions | |
MemoryDump (const uint8 *memory, unsigned int size, unsigned int options=HEADER|REPEAT_HEADER|OFFSET|CHARS) noexcept | |
void | setWordSize (unsigned int value) |
void | setOffsetDigits (unsigned int digits) |
void | setGlobalOffset (uint64 offset) |
Memory dump descriptor.
This class describes a block of memory to be dumped to a format output stream.
enum MemoryDump::Option |
|
inlinenoexcept |
Initializes the descriptor with a word size of 1 and the global offset equal to 0.
memory | The address of the memory to dump. |
size | The size of the memory block in bytes. |
options | The options. Header, repeat of header, offset, and characters are enabled by default. |
|
inline |
Sets the global offset.
|
inline |
Sets the global offset.
|
inline |
Sets the word size (1, 2, 4, or 8).