Skip to main content

Function: call()

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

Defined in: packages/ffi/src/native/lifecycle.ts:53

Invokes a native function through FFI.

Parameters

ParameterTypeDescription
librarystringLibrary name (e.g., "gtk", "adw")
symbolstringFunction symbol name
argsArg[]Arguments with type information for marshaling
returnTypeTypeExpected return type descriptor

Returns

unknown

The unmarshaled return value

Throws

If runtime not started or undefined required argument