MCPcopy Create free account
hub / github.com/Tencent/MMKV / encodeDouble

Function encodeDouble

Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp:307–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307MMKV_EXPORT bool encodeDouble(void *handle, const char *oKey, double value) {
308 MMKV *kv = static_cast<MMKV *>(handle);
309 if (kv && oKey) {
310 auto key = string(oKey);
311 return kv->set((double) value, key);
312 }
313 return false;
314}
315
316MMKV_EXPORT bool encodeDouble_v2(void *handle, const char *oKey, double value, uint32_t expiration) {
317 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected