add span equality and span for bin2hex

This commit is contained in:
2024-04-10 13:26:54 +02:00
parent 659b410caa
commit bee42d4688
3 changed files with 25 additions and 4 deletions

View File

@@ -4,7 +4,10 @@
#include <string_view>
#include <vector>
#include "./span.hpp"
[[nodiscard]] std::vector<uint8_t> hex2bin(const std::string& str);
[[nodiscard]] std::vector<uint8_t> hex2bin(const std::string_view str);
[[nodiscard]] std::string bin2hex(const ByteSpan bin);
[[nodiscard]] std::string bin2hex(const std::vector<uint8_t>& bin);