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

Function isMultiProcess

OpenHarmony/MMKV/src/main/cpp/native_bridge.cpp:1744–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1742}
1743
1744static napi_value isMultiProcess(napi_env env, napi_callback_info info) {
1745 size_t argc = 1;
1746 napi_value args[1] = {nullptr};
1747 NAPI_CALL(napi_get_cb_info(env, info, &argc, args, nullptr, nullptr));
1748
1749 auto handle = NValueToUInt64(env, args[0]);
1750 MMKV *kv = reinterpret_cast<MMKV *>(handle);
1751 if (kv) {
1752 return BoolToNValue(env, kv->isMultiProcess());
1753 }
1754 return NAPIUndefined(env);
1755}
1756
1757static napi_value isReadOnly(napi_env env, napi_callback_info info) {
1758 size_t argc = 1;

Callers

nothing calls this directly

Calls 4

NValueToUInt64Function · 0.85
NAPIUndefinedFunction · 0.85
isMultiProcessMethod · 0.80
BoolToNValueFunction · 0.70

Tested by

no test coverage detected