solanaceae_util/solanaceae/util/utils.hpp

14 lines
361 B
C++
Raw Permalink Normal View History

2024-01-13 22:31:20 +01:00
#pragma once
#include <string>
#include <string_view>
#include <vector>
2024-04-10 13:26:54 +02:00
#include "./span.hpp"
2024-01-13 22:31:20 +01:00
[[nodiscard]] std::vector<uint8_t> hex2bin(const std::string& str);
[[nodiscard]] std::vector<uint8_t> hex2bin(const std::string_view str);
2024-04-10 13:26:54 +02:00
[[nodiscard]] std::string bin2hex(const ByteSpan bin);
2024-01-13 22:31:20 +01:00
[[nodiscard]] std::string bin2hex(const std::vector<uint8_t>& bin);