| 301 | } |
| 302 | |
| 303 | MMKV_EXPORT double decodeDouble(void *handle, const char *oKey, double defaultValue) { |
| 304 | MMKV *kv = static_cast<MMKV *>(handle); |
| 305 | if (kv && oKey) { |
| 306 | auto key = string(oKey); |
| 307 | return kv->getDouble(key, defaultValue); |
| 308 | } |
| 309 | return defaultValue; |
| 310 | } |
| 311 | |
| 312 | MMKV_EXPORT bool encodeBytes(void *handle, const char *oKey, void *oValue, uint64_t length) { |
| 313 | MMKV *kv = static_cast<MMKV *>(handle); |