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

Function decodeInt32

flutter/mmkv_linux/linux/flutter-bridge.cpp:249–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) {
250 MMKV *kv = static_cast<MMKV *>(handle);
251 if (kv && oKey) {
252 auto key = string(oKey);
253 return kv->getInt32(key, defaultValue);
254 }
255 return defaultValue;
256}
257
258MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) {
259 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

getInt32Method · 0.45

Tested by

no test coverage detected