search for: redirectmethodfuncwithintparameter

Displaying 1 result from an estimated 1 matches for "redirectmethodfuncwithintparameter".

2014 Nov 29
3
[LLVMdev] Frontend: How to use Member to Function Pointer as callbacks
...argets[1]; ... Thunk4095: jmp thunkTargets[4095]; - When I call a C function from C# with a callback, what happens is: - Find an unused slot in this thunk table (X) - Register C# member to function pointer in ThunkIdToFuncPtr[X] - Replace thunkTargets[X] with pointer address to "RedirectMethodFuncWithIntParameter" (one such function per callback signature) - This redirect method would receive arguments unmodified from C functions (since previous call was a simple jmp) - It would check in the call stack the current slot X being called (up in the callstack, if call instruction is "call Thunk...