mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 08:20:18 +00:00
update cache system
优化了缓存的信息文件写入方式
This commit is contained in:
@@ -12,7 +12,7 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void WriteInfoToFile(string filePath, string dataFileCRC, long dataFileSize)
|
public static void WriteInfoToFile(string filePath, string dataFileCRC, long dataFileSize)
|
||||||
{
|
{
|
||||||
using (FileStream fs = new FileStream(filePath, FileMode.Create))
|
using (FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.Read))
|
||||||
{
|
{
|
||||||
SharedBuffer.Clear();
|
SharedBuffer.Clear();
|
||||||
SharedBuffer.WriteUTF8(dataFileCRC);
|
SharedBuffer.WriteUTF8(dataFileCRC);
|
||||||
|
|||||||
Reference in New Issue
Block a user