| 293 | } |
| 294 | |
| 295 | MMKV_EXPORT int64_t decodeInt64(void *handle, const char *oKey, int64_t defaultValue) { |
| 296 | MMKV *kv = static_cast<MMKV *>(handle); |
| 297 | if (kv && oKey) { |
| 298 | auto key = string(oKey); |
| 299 | return kv->getInt64(key, defaultValue); |
| 300 | } |
| 301 | return defaultValue; |
| 302 | } |
| 303 | |
| 304 | MMKV_EXPORT bool encodeDouble(void *handle, const char *oKey, double value) { |
| 305 | MMKV *kv = static_cast<MMKV *>(handle); |