Class for encoding byte blocks into hexdump-like format. More...
#include <eagine/hexdump.hpp>
Public Types | |
using | byte_getter = callable_ref< optionally_valid< byte >()> |
Alias for source byte getter callable. | |
using | char_putter = callable_ref< bool(char)> |
Alias for destination encoded char putter callable. | |
Public Member Functions | |
hexdump (memory::const_block mb) noexcept | |
Construction initializing the dumped memory block. | |
Static Public Member Functions | |
static void | apply (byte_getter get_byte, char_putter put_char) |
Uses get_byte to read input bytes, encodes them and calls put_char. | |
Friends | |
auto | operator<< (std::ostream &, const hexdump &) -> std::ostream & |
Operator for writing instances of hexdump to standard output streams. | |
Class for encoding byte blocks into hexdump-like format.
This class stores a memory block and can be used to write the content of the block into an standard output stream in hexadecimal format similar to the output of the command-line hexdump tool.