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

Function encodeDouble_v2

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

Source from the content-addressed store, hash-verified

314}
315
316MMKV_EXPORT bool encodeDouble_v2(void *handle, const char *oKey, double value, uint32_t expiration) {
317 MMKV *kv = static_cast<MMKV *>(handle);
318 if (kv && oKey) {
319 auto key = string(oKey);
320 return kv->set((double) value, key, expiration);
321 }
322 return false;
323}
324
325MMKV_EXPORT double decodeDouble(void *handle, const char *oKey, double defaultValue) {
326 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected