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

Function encodeDouble_v2

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

Source from the content-addressed store, hash-verified

292}
293
294MMKV_EXPORT bool encodeDouble_v2(void *handle, const char *oKey, double value, uint32_t expiration) {
295 MMKV *kv = static_cast<MMKV *>(handle);
296 if (kv && oKey) {
297 auto key = string(oKey);
298 return kv->set((double) value, key, expiration);
299 }
300 return false;
301}
302
303MMKV_EXPORT double decodeDouble(void *handle, const char *oKey, double defaultValue) {
304 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected