MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / getSymbol

Method getSymbol

plugins/ProcessMemoryWindows/ProcessMemoryWindowsPlugin.cpp:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84QString ProcessMemoryWindowsProvider::getSymbol(uint64_t addr) const
85{
86 for (const auto& mod : m_modules)
87 {
88 if (addr >= mod.base && addr < mod.base + mod.size)
89 {
90 uint64_t offset = addr - mod.base;
91 return QStringLiteral("%1+0x%2")
92 .arg(mod.name)
93 .arg(offset, 0, 16, QChar('0'));
94 }
95 }
96 return {};
97}
98
99void ProcessMemoryWindowsProvider::cacheModules()
100{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected