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

    Interface ParamFlag

    Single entry in a paramflags array: describes direction (in/out), parameter name, and optional default value for that slot.

    Python ctypes parity: the tuple form (flag, name[, default]) used with prototype((name, lib), paramflags).

    interface ParamFlag {
        dir: "in" | "out" | "inout";
        name: string;
        default?: any;
    }
    Index
    dir: "in" | "out" | "inout"

    OUT allocates the pointee of a POINTER(T) or array argtype (or passes its default; c_void_p / c_char_p / c_wchar_p need one) and returns it through __ctypes_from_outparam__; INOUT (any argtype) uses and returns the supplied instance.

    name: string

    Parameter name, used for the named-call form fn({ name: value, ... }).

    default?: any

    Optional default value: applied when the caller omits this in param; for an out param, the C data passed to the function and returned.