Optionalcallback
callback?: (
callback: (...args: any[]) => any,
definition: FFIFunction,
) => CallbackHandle
OptionalclosureFree
closureFree?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(...args: (number | bigint)[]): number;
},
>
OptionalcustomClosureFree
customClosureFree?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(...args: (number | bigint)[]): number;
},
>
OptionalforwardClosureNew
forwardClosureNew?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(
...args: (Pointer | TypedArray<ArrayBufferLike> | CString | null)[],
): bigint;
},
>
transform?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(
...args: (
| number
| bigint
| Pointer
| TypedArray<ArrayBufferLike>
| CString
| null
)[],
): number;
},
>
transformedNew?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(...args: never[]): bigint;
},
>
OptionalvjpClosureNew
vjpClosureNew?: NativeCall<
{
__ffi_function_callable: typeof FFIFunctionCallableSymbol;
(
...args: (Pointer | TypedArray<ArrayBufferLike> | CString | null)[],
): bigint;
},
>
Constructor-only dependency seam for deterministic native failure tests.