Strongly-typed FFI function returned by CDLL.func when the argument types and return type are given as a literal tuple and constant respectively.
CDLL.func
Args and return are narrowed from the supplied CType constructors. Falls back to the untyped FFIFunction when types cannot be inferred.
FFIFunction
Readonly
Return type, fixed when the function (a CDLL.func binding or a CFUNCTYPE instance) is created: assigning it throws a TypeError. Python applies the assignment; create a new instance from a prototype with the new type instead.
Argument types, fixed at creation: assigning them throws a TypeError.
Asynchronous call on a worker thread (see FFIFunction.callAsync).
Like callAsync, on the thread of an Executor.
Strongly-typed FFI function returned by
CDLL.funcwhen the argument types and return type are given as a literal tuple and constant respectively.Args and return are narrowed from the supplied CType constructors. Falls back to the untyped
FFIFunctionwhen types cannot be inferred.