Call the native function synchronously.
ReadonlyrestypeReturn type, fixed at creation: assigning it throws a TypeError.
ReadonlyargtypesArgument types, fixed at creation: assigning them throws a TypeError.
ReadonlyfuncThe function name in the native library.
ReadonlyaddressThe function address as BigInt.
Readonly_Error checking callback, called after every invocation (null when not set).
Call the native function asynchronously on a worker thread.
Memory arguments (Buffer, TypedArray, DataView, ArrayBuffer) are passed in
place, as in synchronous calls: do not detach, resize or modify them until
the promise settles, and C must not keep their pointers after the call.
transfer() of such a view during the call rejects the promise, but
native code may already have accessed released memory.
A callable FFI function returned by CDLL.func.
This interface only describes the shape of those callables, which are plain JS functions: they are not instances of the runtime value
FFIFunction(the native class, see NativeFFIFunction), solib.func(...) instanceof FFIFunctionisfalse.Its
restypeandargtypesare fixed when it is created (bindings are shared by signature): assigning them throws a TypeError. Use the library attribute (lib.name) or a CFUNCTYPE prototype to change them.