decodeInt32 method

int decodeInt32(
  1. String key, {
  2. int defaultValue = 0,
})

Use this when the value won't be larger than a normal int32. It's more efficient & cost less space.

Implementation

int decodeInt32(String key, {int defaultValue = 0}) {
  final keyPtr = key.toNativeUtf8();
  final ret = _decodeInt32(_handle, keyPtr, defaultValue);
  calloc.free(keyPtr);
  return ret;
}