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

    Variable FFIFunction

    FFIFunction: {
        prototype: NativeFFIFunction;
        new (
            address: bigint,
            name: string,
            returnType: number | StructType | ArrayType,
            argTypes: readonly (number | StructType | ArrayType)[],
            options?: FunctionOptions,
        ): NativeFFIFunction;
    }

    Runtime native FFIFunction constructor exported by node-ctypes: binds a raw native function address directly. Its instances are NativeFFIFunction objects (instanceof FFIFunction is true for them only). The callables returned by CDLL.func, library attributes and CFUNCTYPE prototypes are JS functions, not instances: for them instanceof FFIFunction is always false, although they have the FFIFunction interface type.

    Type Declaration