MCPcopy Create free account
hub / github.com/nodejs/nan / HandleProgressCallback

Method HandleProgressCallback

test/cpp/asyncprogressworker.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void HandleProgressCallback(const char *data, size_t count) {
37 HandleScope scope;
38
39 v8::Local<v8::Value> argv[] = {
40 New<v8::Integer>(*reinterpret_cast<int*>(const_cast<char*>(data)))
41 };
42 progress->Call(1, argv, async_resource);
43 }
44
45 private:
46 Callback *progress;

Callers 2

WorkProgressMethod · 0.45
WorkProgressMethod · 0.45

Calls 1

CallMethod · 0.80

Tested by

no test coverage detected