diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-02-20 21:33:58 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2026-02-21 01:01:57 -0600 |
| commit | 97a88dd7db123106532cdb8d69a526368c5c0b4a (patch) | |
| tree | 31aad5f7ef60ce14cfb4ae2e1969e52d77b0af3a /Source/Core/Common/StringUtil.h | |
| parent | 981b7df4203d2907278506f4115a3604d7422fbb (diff) | |
MagneticCardReader: Minor fixup to writing card data.
Ensure the 3rd track is written even if the 2nd track isn't.
Moved GetHexDump helper function to StringUtil.
Diffstat (limited to 'Source/Core/Common/StringUtil.h')
| -rw-r--r-- | Source/Core/Common/StringUtil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/StringUtil.h b/Source/Core/Common/StringUtil.h index 6e2c385df9..0cc4e6c15e 100644 --- a/Source/Core/Common/StringUtil.h +++ b/Source/Core/Common/StringUtil.h @@ -164,6 +164,11 @@ std::string ValueToString(Common::Enum auto value) // Generates an hexdump-like representation of a binary data blob. std::string HexDump(const u8* data, size_t size); +inline auto HexDump(std::span<const u8> data) +{ + return HexDump(data.data(), data.size()); +} + namespace Common { std::from_chars_result FromChars(std::string_view sv, std::integral auto& value, int base = 10) |
