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

Function decodeInt32

OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp:268–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getInt32Method · 0.45

Tested by

no test coverage detected