|
|
@ -6,6 +6,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#pragma once |
|
|
|
#pragma once |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint> |
|
|
|
#include <iomanip> |
|
|
|
#include <iomanip> |
|
|
|
#include <ostream> |
|
|
|
#include <ostream> |
|
|
|
#include <span> |
|
|
|
#include <span> |
|
|
@ -43,4 +44,12 @@ inline std::string format_hex_string(std::span<const std::byte> data) { |
|
|
|
return oss.str(); |
|
|
|
return oss.str(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline std::string format_hex_string(std::span<const uint8_t> data) { |
|
|
|
|
|
|
|
return format_hex_string(std::as_bytes(data)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline std::string format_hex_string(std::span<const char> data) { |
|
|
|
|
|
|
|
return format_hex_string(std::as_bytes(data)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace util
|
|
|
|
} // namespace util
|
|
|
|