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