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
I'm trying to wrap a C function that receives a char** as parameter but I can't seem to cast it properly. Do I have to iterate over the array and recreate an array on c? I was following this array buffer to native example but I'm stuck. Can someone give me a hint or point me to an example that uses strings and array?
// wrapper.cc
Napi::Valuestart(constNapi::CallbackInfo&info)
{
Napi::Envenv=info.Env();
Napi::NumberbufferSize=info[0].As<Napi::Number>();
Napi::Arraybuffer=info[1].As<Napi::Array>();
// how would you make this work?char**stringArray=reinterpret_cast<char**>(buffer);
The text was updated successfully, but these errors were encountered:
I'm trying to wrap a C function that receives a char** as parameter but I can't seem to cast it properly. Do I have to iterate over the array and recreate an array on c? I was following this array buffer to native example but I'm stuck. Can someone give me a hint or point me to an example that uses strings and array?
The text was updated successfully, but these errors were encountered: