deserialize

inline fun <T> deserialize(name: String, defValue: T? = null): T
inline fun <T> MMKV.deserialize(name: String, defValue: T? = null): T

根据name读取磁盘数据, 假设磁盘没有则返回defValue指定的默认值


fun <T> MMKV.deserialize(type: Class<T>, name: String, defValue: T? = null): T

根据name读取磁盘数据, 即使读取的是基础类型磁盘不存在的话也会返回null