summaryrefslogtreecommitdiffstats
path: root/src/common/hex_util.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-10-01 00:13:02 +0200
committerZach Hilman <zachhilman@gmail.com>2018-10-04 17:32:04 +0200
commitf62227aa95f96901b75670d3914971593f65f119 (patch)
tree8c667ca88014a0764412993f68fd5b11c93036e8 /src/common/hex_util.h
parentMerge pull request #1415 from DarkLordZach/ips (diff)
downloadyuzu-f62227aa95f96901b75670d3914971593f65f119.tar
yuzu-f62227aa95f96901b75670d3914971593f65f119.tar.gz
yuzu-f62227aa95f96901b75670d3914971593f65f119.tar.bz2
yuzu-f62227aa95f96901b75670d3914971593f65f119.tar.lz
yuzu-f62227aa95f96901b75670d3914971593f65f119.tar.xz
yuzu-f62227aa95f96901b75670d3914971593f65f119.tar.zst
yuzu-f62227aa95f96901b75670d3914971593f65f119.zip
Diffstat (limited to '')
-rw-r--r--src/common/hex_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/hex_util.h b/src/common/hex_util.h
index 863a5ccd9..0b7d3592a 100644
--- a/src/common/hex_util.h
+++ b/src/common/hex_util.h
@@ -7,6 +7,7 @@
#include <array>
#include <cstddef>
#include <string>
+#include <vector>
#include <fmt/format.h>
#include "common/common_types.h"
@@ -14,6 +15,8 @@ namespace Common {
u8 ToHexNibble(char c1);
+std::vector<u8> HexStringToVector(std::string_view str, bool little_endian);
+
template <std::size_t Size, bool le = false>
std::array<u8, Size> HexStringToArray(std::string_view str) {
std::array<u8, Size> out{};
@@ -27,6 +30,8 @@ std::array<u8, Size> HexStringToArray(std::string_view str) {
return out;
}
+std::string HexVectorToString(std::vector<u8> vector, bool upper = true);
+
template <std::size_t Size>
std::string HexArrayToString(std::array<u8, Size> array, bool upper = true) {
std::string out;