2016-11-26 10:42:59 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class HexUtilities
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
const static vector<string> _hexCache;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static string ToHex(uint8_t addr);
|
|
|
|
static string ToHex(uint16_t addr);
|
2017-06-28 19:00:08 -04:00
|
|
|
static string ToHex(uint32_t addr, bool fullSize = false);
|
2017-04-24 18:28:50 -04:00
|
|
|
static string ToHex(vector<uint8_t> &data);
|
|
|
|
|
2016-11-26 10:42:59 -05:00
|
|
|
static int FromHex(string hex);
|
|
|
|
};
|