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

Function encodeDouble

flutter/mmkv_linux/linux/flutter-bridge.cpp:285–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285MMKV_EXPORT bool encodeDouble(void *handle, const char *oKey, double value) {
286 MMKV *kv = static_cast<MMKV *>(handle);
287 if (kv && oKey) {
288 auto key = string(oKey);
289 return kv->set((double) value, key);
290 }
291 return false;
292}
293
294MMKV_EXPORT bool encodeDouble_v2(void *handle, const char *oKey, double value, uint32_t expiration) {
295 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected