Function
Gummemory_patch_code
Declaration [src]
gboolean
gum_memory_patch_code (
gpointer address,
gsize size,
GumMemoryPatchApplyFunc apply,
gpointer apply_data
)
Description [src]
Safely modifies size bytes at address. The supplied function apply gets
called with a writable pointer where you must write the desired
modifications before returning. Do not make any assumptions about this being
the same location as address, as some systems require modifications to be
written to a temporary location before being mapped into memory on top of the
original memory page (e.g. on iOS, where directly modifying in-memory code
may result in the process losing its CS_VALID status).
Parameters
address-
Type:
gpointerAddress to modify from.
The argument can be NULL.The data is owned by the caller of the function. size-
Type:
gsizeNumber of bytes to modify.
apply-
Type:
GumMemoryPatchApplyFuncFunction to apply the modifications.
apply_data-
Type:
gpointerNo description available.
The argument can be NULL.The data is owned by the caller of the function.