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

Function encodeInt32

flutter/mmkv_win32/windows/flutter-bridge.cpp:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) {
233 MMKV *kv = static_cast<MMKV *>(handle);
234 if (kv && oKey) {
235 auto key = string(oKey);
236 return kv->set((int32_t) value, key);
237 }
238 return false;
239}
240
241MMKV_EXPORT bool encodeInt32_v2(void *handle, const char *oKey, int32_t value, uint32_t expiration) {
242 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected