11#include <promeki/config.h>
12#if PROMEKI_ENABLE_CORE
19PROMEKI_NAMESPACE_BEGIN
56 HexDump &setBytesPerLine(
size_t n) {
57 _bytesPerLine = n < 1 ? 1 : n;
67 HexDump &setShowAddress(
bool on) {
78 HexDump &setBaseAddress(uint64_t addr) {
88 HexDump &setAddressDigits(
int digits) {
89 _addressDigits = digits < 1 ? 1 : digits;
98 HexDump &setAddressSuffix(
const String &suffix) {
99 _addressSuffix = suffix;
111 HexDump &setShowAscii(
bool on) {
122 HexDump &setNonPrintable(
char c) {
133 HexDump &setUppercase(
bool on) {
144 HexDump &setIndent(
const String &indent) {
155 String build(
const void *data,
size_t len)
const;
158 String build(
const Buffer &buf)
const {
159 return build(buf.data(), buf.size());
163 size_t _bytesPerLine = 16;
164 uint64_t _baseAddress = 0;
165 int _addressDigits = 8;
166 String _addressSuffix =
": ";
168 char _nonPrintable =
'.';
169 bool _showAddress =
true;
170 bool _showAscii =
true;
171 bool _uppercase =
true;