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. | |
Class for encoding byte blocks into binary format.
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.