3#include "KittyUtils.hpp"
4#include "KittyMemoryEx.hpp"
5#include "KittyMemOp.hpp"
15 friend class MemoryBackupMgr;
23 std::vector<uint8_t> _orig_code;
29 MemoryBackup(
IKittyMemOp *pMem, uintptr_t absolute_address,
size_t backup_size);
70 MemoryBackupMgr() : _pMem(
nullptr)
Interface class for memory operations.
Definition KittyMemOp.hpp:46
MemoryBackup createBackup(uintptr_t absolute_address, size_t backup_size)
Creates a backup of the specified memory region.
MemoryBackupMgr(IKittyMemOp *pMem)
Constructor for MemoryBackuphMgr.
Definition MemoryBackup.hpp:78
A class for backing up and restoring memory data.
Definition MemoryBackup.hpp:14
std::string get_CurrBytes() const
Returns the hex string of the current target address bytes.
uintptr_t get_TargetAddress() const
Returns the address of the memory range that was backed up.
bool isValid() const
Checks if the memory backup is valid.
size_t get_BackupSize() const
Returns the size of the memory range that was backed up.
bool Restore()
Restores the backup code to the memory range.
std::string get_OrigBytes() const
Returns the hex string of the original bytes of the memory range.