add copyFile() & copyFileContent() for POSIX env

This commit is contained in:
guoling
2021-09-15 20:45:29 +08:00
parent 720b172b0b
commit 89cd549a88
4 changed files with 98 additions and 7 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ string ASharedMemory_getName(int fd) {
MMKVError("fail to get ashmem name:%d, %s", fd, strerror(errno));
return "";
}
return string(name);
return {name};
}
} // namespace mmkv