MCPcopy 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
48Value CreateStringFromStringView(const CallbackInfo& info) {
49 return String::New(info.Env(), std::string_view("hello1"));
50}
51
52Value CheckString(const CallbackInfo& info) {
53 String value = info[0].As<String>();

Callers

nothing calls this directly

Calls 1

EnvMethod · 0.80

Tested by

no test coverage detected