39 Commits

Author SHA1 Message Date
guoling b56ce1004f merge ashmem size with expectedCapacity on Android & OHOS 2026-02-11 12:39:08 +08:00
Guo Ling f6e6fbc5e0 convert log message to utf-8 by (changing src in utf-8) for win32 client 2026-01-30 18:04:08 +08:00
guoling c708914c04 protect from delete file failure on corrupted files 2025-12-18 19:33:30 +08:00
guoling 4ad7236e0c dont depend on OS close() to unlock file locks, for Linux/Android flock() is buggy with mmap() 2025-05-07 14:23:41 +08:00
guoling f0e80ad484 add mayfly fd for Win32/POSIX 2025-04-18 21:52:05 +08:00
guoling 561d56ca75 adding mayfly fd on iOS 2025-04-18 17:16:26 +08:00
guoling ead3e4668f add experimental disk corrupt detech on Android/Linux 2025-01-15 11:55:21 +08:00
guoling aad8e484c0 add iOS/macOS/Win32 disk failure protection 2025-01-13 18:11:22 +08:00
guoling 147f89dba7 migrate legacy mmap ID to normal ID 2025-01-06 15:58:01 +08:00
guoling 89b56922e8 1. NameSpace almost work on iOS
2. Upgrade to iOS 13, watchOS 6
3. Dont mkPath() on ReadOnly mode
2025-01-06 15:54:38 +08:00
guoling 47d3c0893a add readonly support 2024-09-06 19:44:11 +08:00
ArcticLampyrid 3596f2aa36 fix: uintX_t is not defined when using gcc 13.2.1 2024-04-19 18:02:29 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
guoling 674e700038 cleanup platform specific code 2021-09-27 22:10:40 +08:00
guoling 91af2711d9 tiny opt 2021-09-22 22:51:40 +08:00
guoling 917b4d9b4d fix trunc bug in File.open() 2021-09-22 22:48:39 +08:00
guoling d0493ec2e3 fix compile error on Linux 2021-09-18 18:32:59 +08:00
guoling 8e979910d0 backup & restore works on Android 2021-09-17 17:47:57 +08:00
guoling 9c0de2dcc9 backup & restore works on POSIX 2021-09-16 20:19:24 +08:00
guoling d5160def4f add pseudo code for backup & restore on iOS, not tested yet 2021-09-10 22:06:13 +08:00
guoling 1d262bb195 hide KeyValueHolder from public header 2020-06-30 18:23:25 +08:00
guoling af1bca6e33 remove useless code 2020-06-29 12:46:15 +08:00
guoling 89f04a0683 tidy 2020-06-28 16:22:00 +08:00
guoling dd259b3169 add cplusplus check 2020-03-24 20:57:23 +08:00
guoling 177a2a3c68 tidy 2020-01-21 22:04:42 +08:00
guoling 5282c480b1 cleanup ASHMEM_NAME_DEF 2020-01-14 14:40:49 +08:00
guoling 35ef768d16 remove MemoryFile from MMKV public header 2020-01-03 21:31:17 +08:00
guoling 8a1d777302 type safe for pb utils 2020-01-03 16:37:40 +08:00
guoling dd24e5a5e6 type safety 2020-01-03 12:14:35 +08:00
guoling ebdac3eee9 tidy typename 2020-01-02 16:53:55 +08:00
guoling 5325333585 cleanup 2019-12-26 17:15:19 +08:00
guoling 9364d0ccfd add relativePath support for iOS 2019-12-24 22:13:42 +08:00
guoling dabb3f6ba5 most things for Win32 actually work 2019-12-17 21:47:33 +08:00
guoling f0052cc834 most things for Android actually work 2019-12-13 12:08:22 +08:00
guoling 4fea0e8788 merging Core lib to Android almost done 2019-12-12 20:31:16 +08:00
guoling c389549990 move every OS dependent stuff out of MMKV.cpp 2019-12-09 18:06:48 +08:00
guoling 0d90cb5166 replace hand-make-mmap with class MemoryFile 2019-12-05 22:10:11 +08:00
guoling f2d1230e37 prepare to replace hand-make-mmap with class MemoryFile 2019-12-05 18:18:09 +08:00