[ctypes-users] Calling arbitrary assembly
Brought to you by:
theller
From: Paolo I. <ara...@in...> - 2003-04-29 21:10:06
|
If I malloc some memory, as pointed before... BUF_TYPE=c_char*4096 addr = malloc(sizeof(BUF_TYPE)) buf=BUF_TYPE.from_address(addr) And I use 'buf.raw' to fill it with some assembled code (binary) of a function, there is a way to define a pointer to that function proto and call it? Thanks in advance for the patience. --- Paolo Invernizzi |