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

Function encodeDouble

OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp:304–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected