MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / createWithHex

Method createWithHex

KittyMemoryEx/MemoryPatch.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115MemoryPatch MemoryPatchMgr::createWithHex(uintptr_t absolute_address, std::string hex)
116{
117 if (!absolute_address || !KittyUtils::String::validateHex(hex))
118 return MemoryPatch();
119
120 std::vector<uint8_t> patch_code(hex.length() / 2);
121 KittyUtils::Data::fromHex(hex, &patch_code[0]);
122
123 return MemoryPatch(_pMem, absolute_address, patch_code.data(), patch_code.size());
124}
125
126#ifndef kNO_KEYSTONE
127

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

MemoryPatchClass · 0.85

Tested by

no test coverage detected