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

Function encodeInt32

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

Source from the content-addressed store, hash-verified

248}
249
250MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) {
251 MMKV *kv = static_cast<MMKV *>(handle);
252 if (kv && oKey) {
253 auto key = string(oKey);
254 return kv->set((int32_t) value, key);
255 }
256 return false;
257}
258
259MMKV_EXPORT bool encodeInt32_v2(void *handle, const char *oKey, int32_t value, uint32_t expiration) {
260 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected