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

Function BoolToNValue

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

Source from the content-addressed store, hash-verified

54}
55
56static napi_value BoolToNValue(napi_env env, bool value) {
57 napi_value result;
58 napi_value resultBool;
59 napi_create_double(env, value, &result);
60 napi_coerce_to_bool(env, result, &resultBool);
61 return resultBool;
62}
63
64static napi_value UInt64ToNValue(napi_env env, uint64_t value) {
65 napi_value result;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected