The MemoryPatch manager class.
More...
#include <MemoryPatch.hpp>
The MemoryPatch manager class.
◆ MemoryPatchMgr()
Constructor for MemoryPatchMgr.
- Parameters
-
| pMem | A pointer to the memory operation object. |
◆ createWithAsm()
| MemoryPatch MemoryPatchMgr::createWithAsm |
( |
uintptr_t | absolute_address, |
|
|
MP_ASM_ARCH | asm_arch, |
|
|
const std::string & | asm_code, |
|
|
uintptr_t | asm_address = 0 ) |
Creates a memory patch with assembly code using keystone assembler.
- Parameters
-
| absolute_address | The absolute address where the patch should be applied. |
| asm_arch | The architecture of the assembly code. |
| asm_code | The assembly code to patch with. |
| asm_address | The address of the assembly code (optional). |
- Returns
- A MemoryPatch object representing the created patch.
◆ createWithBytes()
| MemoryPatch MemoryPatchMgr::createWithBytes |
( |
uintptr_t | absolute_address, |
|
|
const void * | patch_code, |
|
|
size_t | patch_size ) |
Creates a memory patch with byte data.
- Parameters
-
| absolute_address | The absolute address in memory where the patch will be applied. |
| patch_code | A pointer to the patch code to be applied. |
| patch_size | The size of the patch code in bytes. |
◆ createWithHex()
| MemoryPatch MemoryPatchMgr::createWithHex |
( |
uintptr_t | absolute_address, |
|
|
std::string | hex ) |
Creates a memory patch with hexadecimal string data.
- Parameters
-
| absolute_address | The absolute address in memory where the patch will be applied. |
| hex | A hexadecimal string representing the patch code. |
The documentation for this class was generated from the following file:
- /home/runner/work/KittyMemoryEx/KittyMemoryEx/KittyMemoryEx/MemoryPatch.hpp