Mesen-SX/Utilities/HexUtilities.h
NovaSquirrel c0e249e993 Revert "Merge branch 'reformat_code'"
This reverts commit daf3b57e89, reversing
changes made to 7a6e0b7d77.
2021-03-10 11:13:28 -05:00

19 lines
No EOL
475 B
C++

#pragma once
#include "stdafx.h"
class HexUtilities
{
private:
const static vector<string> _hexCache;
public:
static string ToHex(uint8_t value);
static const char* ToHexChar(uint8_t value);
static string ToHex(uint16_t value);
static string ToHex(uint32_t value, bool fullSize = false);
static string ToHex(int32_t value, bool fullSize = false);
static string ToHex24(int32_t value);
static string ToHex(vector<uint8_t> &data);
static int FromHex(string hex);
};