OXYGENHUB
◆ main openmsx / src / utils / HexDump.hh
422 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef HEXDUMP_HH
2
#define HEXDUMP_HH
3
4
#include "MemBuffer.hh"
5
6
#include <cstdint>
7
#include <span>
8
#include <string>
9
#include <string_view>
10
11
namespace HexDump {
12
	[[nodiscard]] std::string encode(std::span<const uint8_t> input, bool newlines = true);
13
	[[nodiscard]] openmsx::MemBuffer<uint8_t> decode(std::string_view input);
14
	[[nodiscard]] bool decode_inplace(std::string_view input, std::span<uint8_t> output);
15
}
16
17
#endif