OGLplus  (0.59.0) a C++ wrapper for rendering APIs

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.
 

Detailed Description

Class for encoding byte blocks into hexdump-like format.

See also
bindump
base64dump

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.

Examples
eagine/embed_self.cpp, and eagine/random_bytes.cpp.

The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).