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

Function encodeInt32

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected