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

Function decodeInt32

Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp:271–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) {
272 MMKV *kv = static_cast<MMKV *>(handle);
273 if (kv && oKey) {
274 auto key = string(oKey);
275 return kv->getInt32(key, defaultValue);
276 }
277 return defaultValue;
278}
279
280MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) {
281 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

getInt32Method · 0.45

Tested by

no test coverage detected