microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
hexdump.hpp File Reference

Direct and fault-checked memory hex-dump views. More...

#include "../microfmt.hpp"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <string_view>
#include "hexdump.ipp"
Include dependency graph for hexdump.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::hexdump_view
 
struct  microfmt::formatter< hexdump_view >
 

Namespaces

namespace  microfmt
 

Typedefs

using microfmt::memory_reader_fn_t = size_t(*)(void *ctx, uintptr_t src_addr, uint8_t *dst_buf, size_t max_len) noexcept
 Function signature for a safe/probed memory reader.
 

Functions

constexpr hexdump_view microfmt::hexdump (span< const uint8_t > data, uintptr_t base_addr=0, uint8_t bytes_per_line=16, bool show_ascii=true) noexcept
 Helper for dumping safe, direct in-memory buffers (zero overhead).
 
RELOCO_BEGIN_UNSAFE_CODE constexpr hexdump_view microfmt::hexdump_checked (uintptr_t base_addr, size_t total_len, memory_reader_fn_t reader, void *ctx=nullptr, uint8_t bytes_per_line=16, bool show_ascii=true) noexcept
 Helper for dumping memory via a fault-checked accessor probe.
 
RELOCO_END_UNSAFE_CODE MICROFMT_API void microfmt::format_hexdump (const hexdump_view &h, span< uint8_t > line_buffer, const sink &out) noexcept
 Formats a hex dump using caller-provided line storage.
 
void microfmt::hexdump_to (const sink &out, span< const uint8_t > data, uintptr_t base_address=0) noexcept
 

Detailed Description

Direct and fault-checked memory hex-dump views.