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

Class for encoding byte blocks into binary format. More...

#include <eagine/bindump.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

 bindump (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 bindump &) -> std::ostream &
 Operator for writing instances of bindump to standard output streams.
 

Detailed Description

Class for encoding byte blocks into binary format.

See also
hexdump

This class stores a memory block and can be used to write the content of the block into an standard output stream in binary format.

Examples
eagine/bindump.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).