From 4210a8ac548ce526e3023729859d3a3931d31c13 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 25 Jul 2024 09:50:50 +1000 Subject: [PATCH] add some helpful hex dump overloads --- src/util/include/debug.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util/include/debug.hpp b/src/util/include/debug.hpp index 06e3833e..37c26f6a 100644 --- a/src/util/include/debug.hpp +++ b/src/util/include/debug.hpp @@ -6,6 +6,7 @@ #pragma once +#include #include #include #include @@ -43,4 +44,12 @@ inline std::string format_hex_string(std::span data) { return oss.str(); } +inline std::string format_hex_string(std::span data) { + return format_hex_string(std::as_bytes(data)); +} + +inline std::string format_hex_string(std::span data) { + return format_hex_string(std::as_bytes(data)); +} + } // namespace util