Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/nan
/ callback
Function
callback
test/cpp/buffer.cpp:17–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
static char data[DATA_SIZE];
16
17
void callback(char* data, void* hint) {
18
free(data);
19
}
20
21
NAN_METHOD(New1) {
22
char *dynamic_data = static_cast<char *>(malloc(DATA_SIZE));
Callers
15
FunctionCallbackWrapper
Function · 0.85
GetterCallbackWrapper
Function · 0.85
SetterCallbackWrapper
Function · 0.85
PropertyGetterCallbackWrapper
Function · 0.85
PropertySetterCallbackWrapper
Function · 0.85
PropertyEnumeratorCallbackWrapper
Function · 0.85
PropertyDeleterCallbackWrapper
Function · 0.85
PropertyQueryCallbackWrapper
Function · 0.85
IndexGetterCallbackWrapper
Function · 0.85
IndexSetterCallbackWrapper
Function · 0.85
IndexEnumeratorCallbackWrapper
Function · 0.85
IndexDeleterCallbackWrapper
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected