| 274 | } |
| 275 | |
| 276 | MMKV_EXPORT int64_t decodeInt64(void *handle, const char *oKey, int64_t defaultValue) { |
| 277 | MMKV *kv = static_cast<MMKV *>(handle); |
| 278 | if (kv && oKey) { |
| 279 | auto key = string(oKey); |
| 280 | return kv->getInt64(key, defaultValue); |
| 281 | } |
| 282 | return defaultValue; |
| 283 | } |
| 284 | |
| 285 | MMKV_EXPORT bool encodeDouble(void *handle, const char *oKey, double value) { |
| 286 | MMKV *kv = static_cast<MMKV *>(handle); |