Commit Graph

45 Commits

Author SHA1 Message Date
guoling 1feba14d33 avoid using so-called privacy API #1220 2024-03-20 12:30:46 +08:00
guoling 87578391cd change to access() to detect file existence 2024-03-19 21:19:15 +08:00
guoling d7310af125 include <unistd.h> for unlink() #1233 2024-02-05 19:58:21 +08:00
guoling 80a27ff49e log mmap() result address 2024-01-09 17:40:05 +08:00
guoling 690620c8f9 dont ExclusiveLockType on loading unless there is need for truncate 2023-12-25 15:48:53 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
lishaokai 347b25feaa redo ftruncate file to its previous size when zeroFillFile fails(disk full) #1180 2023-09-26 17:53:29 +08:00
kaitian521 5c88ea604b Merge branch 'dev' into dev 2023-08-11 21:32:26 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
guoling 6734567f8a never close MetaFile on clearMemoryCache() #1117 #1061 2023-08-11 12:49:42 +08:00
guoling 7eb562495b bugfix: some Android devices might not have access permission on parent dir #1119 2023-08-10 18:09:11 +08:00
guoling 674e700038 cleanup platform specific code 2021-09-27 22:10:40 +08:00
guoling a3ffbf1598 don't clear metafile on clearMemoryCache() 2021-09-27 18:25:33 +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 01bff5b3bc fall back on syscall() on Android, regardless of api level 2021-09-18 20:46:04 +08:00
guoling 722da75803 fix compile error on POSIX 2021-09-18 18:41:30 +08:00
guoling d0493ec2e3 fix compile error on Linux 2021-09-18 18:32:59 +08:00
guoling 612368d1fa use sendfile() & renameat2() to opt performance on Linux & Android 2021-09-18 17:53:52 +08:00
guoling a813ae8fd9 backup & restore with customize rootPath works on Android 2021-09-18 15:22:11 +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 d0a714eb69 lock g_instanceLock while backup special MMKV 2021-09-15 22:03:04 +08:00
guoling 89cd549a88 add copyFile() & copyFileContent() for POSIX env 2021-09-15 20:45:29 +08:00
guoling d5160def4f add pseudo code for backup & restore on iOS, not tested yet 2021-09-10 22:06:13 +08:00
guoling a6c336d707 fix MM_SYNC typo #597 2020-12-17 18:13:02 +08:00
guoling 177a2a3c68 tidy 2020-01-21 22:04:42 +08:00
guoling ffe9c90e24 add MMKV_ASSERT() 2020-01-21 15:45:01 +08:00
guoling 455b9d840c remove ThreadLock & InterProcessLock from MMKV public header 2020-01-03 18:52:00 +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 953b720e37 split Apple stuff in seperate file 2019-12-27 17:08:00 +08:00
guoling 5325333585 cleanup 2019-12-26 17:15:19 +08:00
guoling 603c0b117d add multi-process demo app extension for iOS 2019-12-26 12:52:36 +08:00
guoling 9364d0ccfd add relativePath support for iOS 2019-12-24 22:13:42 +08:00
guoling 36df7b56c8 remove hardcode MMKV_WIN32 2019-12-18 11:33:16 +08:00
guoling dabb3f6ba5 most things for Win32 actually work 2019-12-17 21:47:33 +08:00
guoling f907f10c94 tidy std usage 2019-12-13 17:38:49 +08:00
guoling b13d9d8639 split Android stuff in seperate file 2019-12-13 16:51:37 +08:00
guoling 698a15f21b fix Linux compile error 2019-12-13 12:23:38 +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