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

    Variable c_void_pConst

    c_void_p: SimpleCDataConstructor<"pointer">

    Void pointer. Python: ctypes.c_void_p.

    As a function parameter (c_void_p.from_param) it takes an integer address, null, a pointer-valued instance, memory (pointer, array, byref(), Buffer, typed array, function pointer) and a JS string, passed as a NUL-terminated wchar_t* (Python passes a str as c_wchar_p; a Buffer passes its bytes). Also in callAsync / callOn.

    Arguments beyond argtypes (variadic, or without argtypes): a number must be an integer within C long / unsigned long (passed as int); pass a double as new c_double(x). A Structure / Union instance passed there is passed by value, as in CPython (pass byref(s) for its address); an array is passed as a pointer.