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

Function cryptKey

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

Source from the content-addressed store, hash-verified

1521#ifndef MMKV_DISABLE_CRYPT
1522
1523static napi_value cryptKey(napi_env env, napi_callback_info info) {
1524 size_t argc = 1;
1525 napi_value args[1] = {nullptr};
1526 NAPI_CALL(napi_get_cb_info(env, info, &argc, args, nullptr, nullptr));
1527
1528 auto handle = NValueToUInt64(env, args[0]);
1529 MMKV *kv = reinterpret_cast<MMKV *>(handle);
1530 if (kv) {
1531 return StringToNValue(env, kv->cryptKey());
1532 }
1533 return NAPIUndefined(env);
1534}
1535
1536static napi_value reKey(napi_env env, napi_callback_info info) {
1537 size_t argc = 3;

Callers

nothing calls this directly

Calls 4

NValueToUInt64Function · 0.85
NAPIUndefinedFunction · 0.85
StringToNValueFunction · 0.70
cryptKeyMethod · 0.45

Tested by

no test coverage detected