I am passing a callback to a function in C++. This callback must accept a struct defined in the C++ code that contains a char array. I looked at Call C++ dll with struct containing char array from Node.js, which discusses how to pass a struct containing a char array to a foreign C++ function. ..
Could anyone help in writing this block of code in nodejs-ffi-napi. void __cdecl waveform(double Amplitude, double SamplingRateSS, int32_t CodeOrder, double PRIS, double DutyCycle, double IData, double QData, int32_t len, int32_t len2); Here double IData & double QData are output arrays of double datatypes. And int32_t len and int32_t len2 are lengths of IData and QData ..
I make image data by using Vulkan and glfw and made a DLL that sends the image to the Electron side by using node-ffi. However, I can’t express the image data is generated this DLL. What should i do? Current Source code on the Electron side. Image data generated in C ++ is made up ..