Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node-addon-api
/ CreateStringFromStringView
Function
CreateStringFromStringView
test/name.cc:48–50 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
46
}
47
48
Value CreateStringFromStringView(const CallbackInfo& info) {
49
return String::New(info.Env(), std::string_view(
"hello1"
));
50
}
51
52
Value CheckString(const CallbackInfo& info) {
53
String value = info[0].As<String>();
Callers
nothing calls this directly
Calls
1
Env
Method · 0.80
Tested by
no test coverage detected