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
Hi all!
I don't know if it's a real issue, but I can't find the answer to my question.
I have a pointer to a pointer to an array const char ** myfunc(void)
so using ffi-napi and ref-napi I can write something like that
import * as ffi from 'ffi-napi';
import * as ref from 'ref-napi';
let mylib = ffi.Library('mylib', {
"myfunc": [ ref.refType('char'), [] ],
});
let myFunc = mylib.myfunc()
let firstItem = ref.readCString(ref.readPointer(myFunc), 0);
but I can retrieve only the first element of the array.
Is there a way to retrieve all the items?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi all!
I don't know if it's a real issue, but I can't find the answer to my question.
I have a pointer to a pointer to an array
const char ** myfunc(void)
so using ffi-napi and ref-napi I can write something like that
but I can retrieve only the first element of the array.
Is there a way to retrieve all the items?
Thanks!
The text was updated successfully, but these errors were encountered: