From 7aeb1a5e3547c1dd96f864b8fbb2ca6c80cbd9ea Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 22 Jun 2025 02:43:13 +0100 Subject: [PATCH] Add function to convert byte to hex. --- lib/functions.incpat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/functions.incpat b/lib/functions.incpat index 8ecc9c9..bd8bff1 100644 --- a/lib/functions.incpat +++ b/lib/functions.incpat @@ -49,3 +49,8 @@ fn format_array_as_hex(ref auto arg) return result; }; + +fn format_byte_as_hex(u8 arg) +{ + return std::format("{}", arg); +};