| 1167 | } |
| 1168 | |
| 1169 | MMKV_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 | |
| 1180 | MMKV_JNI jboolean checkExist(JNIEnv *env, jclass type, jstring oMmapID, jstring rootPath) { |
| 1181 | if (oMmapID) { |
nothing calls this directly
no test coverage detected