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
| Parameter | Type | Description |
|---|---|---|
library | string | Shared library name (e.g., "libgtk-4.so.1") |
symbol | string | Function symbol name |
args | Arg[] | Function arguments |
returnType | Type | Expected return type |
Returns
unknown
The function return value, or undefined for void calls