2019-02-13 14:10:36 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class HexUtilities
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
const static vector<string> _hexCache;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static string ToHex(uint8_t value);
|
2019-07-18 16:14:32 -04:00
|
|
|
static const char* ToHexChar(uint8_t value);
|
2019-02-13 14:10:36 -05:00
|
|
|
static string ToHex(uint16_t value);
|
|
|
|
static string ToHex(uint32_t value, bool fullSize = false);
|
|
|
|
static string ToHex(int32_t value, bool fullSize = false);
|
2019-02-13 18:44:12 -05:00
|
|
|
static string ToHex24(int32_t value);
|
2021-03-10 11:13:28 -05:00
|
|
|
static string ToHex(vector<uint8_t> &data);
|
2019-02-13 14:10:36 -05:00
|
|
|
|
|
|
|
static int FromHex(string hex);
|
2021-03-10 11:13:28 -05:00
|
|
|
};
|