update cache system

This commit is contained in:
hevinci
2023-02-10 16:13:08 +08:00
parent c5c6e4ae23
commit ef0cc05f5c
5 changed files with 51 additions and 17 deletions
@@ -28,6 +28,14 @@ namespace YooAsset
get { return _buffer.Length; }
}
/// <summary>
/// 清空缓冲区
/// </summary>
public void Clear()
{
_index = 0;
}
/// <summary>
/// 将有效数据写入文件流
/// </summary>