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

Function getNameSpace

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:1169–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1167}
1168
1169MMKV_JNI jboolean getNameSpace(JNIEnv *env, jclass type, jstring rootPath) {
1170 if (rootPath) {
1171 auto root = jstring2string(env, rootPath);
1172 if (!root.empty()) {
1173 MMKV::nameSpace(root);
1174 return (jboolean) true;
1175 }
1176 }
1177 return (jboolean) false;
1178}
1179
1180MMKV_JNI jboolean checkExist(JNIEnv *env, jclass type, jstring oMmapID, jstring rootPath) {
1181 if (oMmapID) {

Callers

nothing calls this directly

Calls 1

jstring2stringFunction · 0.70

Tested by

no test coverage detected