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

Function encodeDouble_v2

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected