MCPcopy Create free account
hub / github.com/Tencent/MMKV / StringToNValue

Function StringToNValue

OpenHarmony/entry/src/main/cpp/napi_init.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static napi_value StringToNValue(napi_env env, const string &value) {
51 napi_value result;
52 napi_create_string_utf8(env, value.data(), value.size(), &result);
53 return result;
54}
55
56static napi_value BoolToNValue(napi_env env, bool value) {
57 napi_value result;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected