Wrapper returned by Python-like property access on CDLL.
Supports the argtypes/restype pattern from Python ctypes.
argtypes
restype
const abs_func = libc.abs;abs_func.argtypes = [c_int];abs_func.restype = c_int;console.log(abs_func(-42)); // 42 Copy
const abs_func = libc.abs;abs_func.argtypes = [c_int];abs_func.restype = c_int;console.log(abs_func(-42)); // 42
Call the function.
Readonly
Resolve the native function address.
Argument types. Set before calling.
Return type (null for void, as Python's None). Set before calling.
null
void
None
Optional error checking callback (null when not set).
Call the function asynchronously on a worker thread.
Wrapper returned by Python-like property access on CDLL.
Supports the
argtypes/restypepattern from Python ctypes.Example