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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -