node.js - How to have OUT parameters in a nodejs addon function? -
node.js - How to have OUT parameters in a nodejs addon function? -
i'm writing nodejs addon should have function returns rather big junk of info , result.
the result can used homecoming value, how set parameter out parameter?
void foobar(const functioncallbackinfo<value>& args) { isolate* isolate = isolate::getcurrent(); handlescope scope(isolate); unsigned int ret = -1 local<uint8array> data; /* here info filled , ret set */ args[0] = local<value>::cast(data); args.getreturnvalue().set(ret); }
cheers!
node.js
Comments
Post a Comment