2016-11-26 10:42:59 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class HexUtilities
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
const static vector<string> _hexCache;
|
|
|
|
|
|
|
|
public:
|
2018-04-14 22:31:19 -04:00
|
|
|
static string ToHex(uint8_t value);
|
|
|
|
static string ToHex(uint16_t value);
|
|
|
|
static string ToHex(uint32_t value, bool fullSize = false);
|
2019-05-12 12:28:01 -04:00
|
|
|
static string ToHex(uint64_t value, bool fullSize = false);
|
2018-05-26 01:14:37 -04:00
|
|
|
static string ToHex(int32_t value, 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);
|
|
|
|
};
|