Lines Matching refs:target_function
167 static SideStepError Patch(T target_function,
173 return RawPatch((void*)(target_function),
237 // @param target_function A pointer to the function that should be
264 static SideStepError RawPatch(void* target_function,
268 // Unpatches target_function and deletes the stub that previously could be
273 // @param target_function Pointer to the target function which was
277 // @param replacement_function Pointer to the function target_function
292 static SideStepError Unpatch(void* target_function,
301 // @param target_function Pointer to a function.
303 // @return Either target_function (the input parameter), or if
304 // target_function's body consists entirely of a JMP instruction,
308 static T ResolveTarget(T target_function) {
309 return (T)ResolveTargetImpl((unsigned char*)target_function, NULL);
369 // @param target_function A pointer to the function that should be
390 void* target_function,
400 // @param target_function A pointer to the function that should be
420 static SideStepError RawPatchWithStub(void* target_function,
432 // @param target_function Pointer to a function.
435 // target_function, we get to the address stop, we return
439 // target_function, stop before a trampoline is detected. See comment in
443 // @return Either target_function (the input parameter), or if
444 // target_function's body consists entirely of a JMP instruction,
447 static void* ResolveTargetImpl(unsigned char* target_function,