MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / getAddressString

Function getAddressString

Source/GUI/MemWatcher/MemWatchModel.cpp:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace
21{
22QString getAddressString(const MemWatchEntry* const entry)
23{
24 std::stringstream ss;
25 if (entry->isBoundToPointer())
26 {
27 int level = static_cast<int>(entry->getPointerLevel());
28 std::string strAddress = entry->getAddressStringForPointerLevel(level);
29 ss << "(" << level << "*)" << std::hex << std::uppercase << strAddress;
30 return QString::fromStdString(ss.str());
31 }
32 u32 address = entry->getConsoleAddress();
33 ss << std::hex << std::uppercase << address;
34 return QString::fromStdString(ss.str());
35}
36} // namespace
37
38MemWatchModel::MemWatchModel(QObject* parent) : QAbstractItemModel(parent)

Callers 1

dataMethod · 0.85

Calls 4

isBoundToPointerMethod · 0.80
getPointerLevelMethod · 0.80
getConsoleAddressMethod · 0.80

Tested by

no test coverage detected