1
0
Fork 0

GUI: remove useless functions from MemoryPage

This commit is contained in:
Duncan Ogilvie 2019-09-07 17:28:24 +02:00
parent 67341fe997
commit bdfb65fc7a
2 changed files with 0 additions and 12 deletions

View File

@ -11,11 +11,6 @@ bool MemoryPage::read(void* parDest, dsint parRVA, duint parSize) const
return DbgMemRead(mBase + parRVA, reinterpret_cast<unsigned char*>(parDest), parSize);
}
bool MemoryPage::read(byte_t* parDest, dsint parRVA, duint parSize) const
{
return read(reinterpret_cast<void*>(parDest), parRVA, parSize);
}
bool MemoryPage::write(const void* parDest, dsint parRVA, duint parSize)
{
bool ret = DbgFunctions()->MemPatch(mBase + parRVA, reinterpret_cast<const unsigned char*>(parDest), parSize);
@ -23,11 +18,6 @@ bool MemoryPage::write(const void* parDest, dsint parRVA, duint parSize)
return ret;
}
bool MemoryPage::write(const byte_t* parDest, dsint parRVA, duint parSize)
{
return write(reinterpret_cast<const void*>(parDest), parRVA, parSize);
}
duint MemoryPage::getSize() const
{
return mSize;

View File

@ -11,9 +11,7 @@ public:
explicit MemoryPage(duint parBase, duint parSize, QObject* parent = 0);
bool read(void* parDest, dsint parRVA, duint parSize) const;
bool read(byte_t* parDest, dsint parRVA, duint parSize) const;
bool write(const void* parDest, dsint parRVA, duint parSize);
bool write(const byte_t* parDest, dsint parRVA, duint parSize);
duint getSize() const;
duint getBase() const;
duint va(dsint rva) const;