node-ctypes - v2.10.0
    Preparing search index...

    Interface FFIFunction

    A callable FFI function returned by CDLL.func.

    interface FFIFunction {
        callAsync(...args: any[]): Promise<any>;
        funcName: string;
        address: bigint;
        _as_parameter_: bigint;
        errcheck: ErrcheckCallback;
        (...args: any[]): any;
    }
    • Call the native function synchronously.

      Parameters

      • ...args: any[]

      Returns any

    Index
    funcName: string

    The function name in the native library.

    address: bigint

    The function address as BigInt.

    _as_parameter_: bigint

    Error checking callback, called after every invocation (null when not set).

    • Call the native function asynchronously on a worker thread.

      Parameters

      • ...args: any[]

      Returns Promise<any>