| 320 | } |
| 321 | |
| 322 | MMKV_EXPORT double decodeDouble(void *handle, const char *oKey, double defaultValue) { |
| 323 | MMKV *kv = static_cast<MMKV *>(handle); |
| 324 | if (kv && oKey) { |
| 325 | auto key = string(oKey); |
| 326 | return kv->getDouble(key, defaultValue); |
| 327 | } |
| 328 | return defaultValue; |
| 329 | } |
| 330 | |
| 331 | MMKV_EXPORT bool encodeBytes(void *handle, const char *oKey, void *oValue, uint64_t length) { |
| 332 | MMKV *kv = static_cast<MMKV *>(handle); |