/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
src/cross/hex_viewer/DataTable.h
39 строк
757 B
Duncan Ogilvie
Fix formatting
17 авг 2025, 22:08
17 авг 2025, 22:08
b5f6df7
Код
Авторство
О чём код?
#pragma once #include <vector> #include <functional> #include <BasicView/StdTable.h> class DataTable : public StdTable { public: explicit DataTable(QWidget* parent = nullptr); public slots: void selectionChanged(duint start, duint end); private: bool read(void* destination, duint addr, duint size); template<class T> QString primitive(duint addr) { T data = {}; if(!read(&data, addr, sizeof(data))) { return "???"; } return QString("%1").arg(data); } enum Columns { ColType, ColValue, }; using DataFn = std::function<QString(duint, duint)>; std::vector<std::pair<QString, DataFn>> mTypes; };