As a function parameter (c_void_p.from_param) it takes an integer
address, null, a pointer-valued instance, memory (pointer, array,
byref(), Buffer, typed array, function pointer) and a JS string, passed
as a NUL-terminated wchar_t* (Python passes a str as c_wchar_p; a
Buffer passes its bytes). Also in callAsync / callOn.
Arguments beyond argtypes (variadic, or without argtypes): a number
must be an integer within C long / unsigned long (passed as int);
pass a double as new c_double(x). A Structure / Union instance passed
there is passed by value, as in CPython (pass byref(s) for its address);
an array is passed as a pointer.
Void pointer. Python:
ctypes.c_void_p.As a function parameter (
c_void_p.from_param) it takes an integer address,null, a pointer-valued instance, memory (pointer, array,byref(), Buffer, typed array, function pointer) and a JS string, passed as a NUL-terminatedwchar_t*(Python passes astrasc_wchar_p; a Buffer passes its bytes). Also incallAsync/callOn.Arguments beyond
argtypes(variadic, or withoutargtypes): a number must be an integer within Clong/unsigned long(passed asint); pass a double asnew c_double(x). A Structure / Union instance passed there is passed by value, as in CPython (passbyref(s)for its address); an array is passed as a pointer.