KittyMemoryEx 1.0.0
Dedicated library for runtime code patching, memory scanning, tracing, injection and some more useful memory utilities. works for both Android and Linux
Loading...
Searching...
No Matches
MemoryPatch Class Reference

The MemoryPatch class represents a memory patch for applying modifications to a memory address. More...

#include <MemoryPatch.hpp>

Public Member Functions

 MemoryPatch (IKittyMemOp *pMem, uintptr_t absolute_address, const void *patch_code, size_t patch_size)
bool isValid () const
 Checks if the MemoryPatch object is valid.
size_t get_PatchSize () const
 Returns the size of the memory patch.
uintptr_t get_TargetAddress () const
 Returns the target address of the memory patch.
bool Restore ()
 Restores the patch to its original value.
bool Modify ()
 Applies patch modifications to the target address.
std::string get_CurrBytes () const
 Returns hex string of the current target address bytes.
std::string get_OrigBytes () const
 Returns hex string of the original bytes.
std::string get_PatchBytes () const
 Returns hex string of the patch bytes.

Friends

class MemoryPatchMgr

Detailed Description

The MemoryPatch class represents a memory patch for applying modifications to a memory address.

The MemoryPatch class allows for the creation and management of memory patches, including:

  • Applying patches with byte data
  • Applying patches with hexadecimal strings
  • Applying patches with assembly code
  • Checking the validity of a MemoryPatch object
  • Restoring the patch to its original value
  • Modifying the memory target to apply the patch
  • Retrieving the hex strings of current, original, and patch bytes

The documentation for this class was generated from the following file:
  • /home/runner/work/KittyMemoryEx/KittyMemoryEx/KittyMemoryEx/MemoryPatch.hpp