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

Function enableCompareBeforeSet

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

Source from the content-addressed store, hash-verified

1648}
1649
1650static napi_value enableCompareBeforeSet(napi_env env, napi_callback_info info) {
1651 size_t argc = 1;
1652 napi_value args[1] = {nullptr};
1653 NAPI_CALL(napi_get_cb_info(env, info, &argc, args, nullptr, nullptr));
1654
1655 auto handle = NValueToUInt64(env, args[0]);
1656 MMKV *kv = reinterpret_cast<MMKV *>(handle);
1657 if (kv) {
1658 kv->enableCompareBeforeSet();
1659 }
1660 return NAPIUndefined(env);
1661}
1662
1663static napi_value disableCompareBeforeSet(napi_env env, napi_callback_info info) {
1664 size_t argc = 1;

Callers

nothing calls this directly

Calls 3

NValueToUInt64Function · 0.85
NAPIUndefinedFunction · 0.85

Tested by

no test coverage detected