MCPcopy Create free account
hub / github.com/WallBreaker2/op / parse_hex_word

Function parse_hex_word

libop/memory/ProcessMemory.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85size_t parse_hex_word(const wstring &num) {
86 if (num.empty())
87 return 0;
88 wchar_t *end = nullptr;
89 const unsigned long long v = wcstoull(num.c_str(), &end, 16);
90 if (end == num.c_str())
91 return 0;
92#if defined(_WIN64)
93 return static_cast<size_t>(v);
94#else
95 return static_cast<size_t>(static_cast<unsigned long>(v));
96#endif
97}
98
99size_t do_op_ptr(size_t a, size_t b, wchar_t op) {
100 switch (op) {

Callers 2

stringcomputeFunction · 0.85
str2addressMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected