MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / setCallbackArgs

Method setCallbackArgs

src/NodeRTLib/ProjectFiles/node-async.h:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 Baton() { callback_args_size = 0; }
70
71 void setCallbackArgs(Handle<Value>* argv, int argc) {
72 HandleScope scope;
73
74 callback_info.reset(new Persistent<Value>[argc],
75 [](Persistent<Value>* ptr) { delete[] ptr; });
76
77 callback_args_size = 0;
78
79 for (int i = 0; i < argc; i++) {
80 // callback_info.get()[i] = argv[i];
81 callback_info.get()[i].Reset(argv[i]);
82 }
83 }
84
85 virtual ~Baton() {
86 for (int i = 0; i < callback_args_size; i++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected