node-addon-examples
node-addon-examples copied to clipboard
Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html
https://github.com/nodejs/node/issues/13512 seems to indicate that we should have such an example.
Hi, It is currently not possible to build the NAN examples, because lines like `cons->NewInstance(argc, argv)` are frequently used. However, NewInstance is deprecated and `Nan::NewInstance(cons, argc, argv).ToLocalChecked()` or similar should...
Implemented a wrapper for the function using N-API. It works, but the problem is that when it works the main thread of the node does not work? How can I...
Can examples of composition and inheritance of wrapped objects be added? I think one could potentially figure it out with the current examples, but I'm not able to figure it...
Hey! This is more like something I am stuck at. I have a library with header files, and I want to make bindings for that library. Yet, I can not...
I have a byte array of an image in nodejs and i want to pass it in a C function for further processing . If i am passing it as...
Hello, I'm having trouble making a callback and passing a Buffer as the argument. Look at the code here: ``` v8::Local callback; void SetCallback(const Nan::FunctionCallbackInfo& info) { callback = info[0].As();...
I cannot find any information on how to create an ObjectWrap and pass it as an argument to a Local. I have a persistent callback registered and need to call...
I transfer the image buffer data from js to cpp, using Local value = args[0]->ToObject(); But after that I don't know how to use the data in cpp. I hope...