You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From all the Buffer type logs it seems like I'm receiving back no values at all from my OUT StructType parameter. I have no Idea why this is happening. I'm very new to using node-ffi and node-ref. I managed to get to communicate to another USB device but data structures are much simpler, no nested struct and array types. But this one I cannot get to work. Anyone enlighten me to what with what I'm doing wrong?
The text was updated successfully, but these errors were encountered:
feutech-pgsantos
changed the title
Struct Pointer passed as IN and OUT argument
OUT parameter with type of Struct Pointer cannot receive back values from DLL call
Mar 7, 2019
Same question. In my case I have an array of pointers. When passed in, I only get the value of the first array element. I cannot get a reference to any other values. After using reinterpret, despite loading with identical buffer data, will not deref properly.. where as leaving it alone does, so I can't offset anything. I can manually offset values, with but the data appear to be in inconsistent locations.
C Data Structure:
Emulated JS code of the C code above:
DLL API:
node-ffi code of the DLL API above:
ffi function invocation in node:
The console log would return something like this:
From all the Buffer type logs it seems like I'm receiving back no values at all from my OUT StructType parameter. I have no Idea why this is happening. I'm very new to using node-ffi and node-ref. I managed to get to communicate to another USB device but data structures are much simpler, no nested struct and array types. But this one I cannot get to work. Anyone enlighten me to what with what I'm doing wrong?
The text was updated successfully, but these errors were encountered: