#pragma once #include #include #include #include "./span.hpp" [[nodiscard]] std::vector hex2bin(const std::string& str); [[nodiscard]] std::vector hex2bin(const std::string_view str); [[nodiscard]] std::string bin2hex(const ByteSpan bin); [[nodiscard]] std::string bin2hex(const std::vector& bin);