Hi, I have problem, when I'm using ref-napi 1.5.2 its work fine, but I need the napi libs for compatibility issue with electron and last node versions too, and change to 3.0.1 then I got this error when use reinterpret inside a ffi.Callback function.
captureCallback = ffi.Callback('void', ['pointer', 'uint', 'uint', 'pointer'], (ctx: any, rsv: number, dtSize: number, dt: Buffer) => { const dtReinterpreted = new dpfpdd_capture_callback_data_0(ref.reinterpret(dt, dtSize)); ..... ..... });
I hope it is useful, if need anything else please update me :)
Hi, I have problem, when I'm using ref-napi 1.5.2 its work fine, but I need the napi libs for compatibility issue with electron and last node versions too, and change to 3.0.1 then I got this error when use reinterpret inside a ffi.Callback function.
captureCallback = ffi.Callback('void', ['pointer', 'uint', 'uint', 'pointer'], (ctx: any, rsv: number, dtSize: number, dt: Buffer) => { const dtReinterpreted = new dpfpdd_capture_callback_data_0(ref.reinterpret(dt, dtSize)); ..... ..... });I hope it is useful, if need anything else please update me :)