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