Skip to main content

Function: call()

call(library, symbol, args, returnType): unknown

Defined in: packages/ffi/src/batch.ts:75

Makes an FFI call, batching it if inside a batch context.

Calls with void return type are queued for batching. Calls with return values are executed immediately since the result is needed.

Parameters

ParameterTypeDescription
librarystringShared library name (e.g., "libgtk-4.so.1")
symbolstringFunction symbol name
argsArg[]Function arguments
returnTypeTypeExpected return type

Returns

unknown

The function return value, or undefined for void calls