using System.Collections.Generic;
namespace YooAsset
{
internal interface ICacheSystem
{
///
/// 获取缓存文件的根目录
///
string GetCacheFileRoot();
///
/// 获取临时缓存文件路径
///
string GetTempFilePath(PackageBundle bundle);
///
/// 获取数据文件路径
///
string GetDataFilePath(PackageBundle bundle);
///
/// 获取信息文件路径
///
string GetInfoFilePath(PackageBundle bundle);
///
/// 获取所有缓存文件的GUID
///
List GetAllCachedBundleGUIDs();
///
/// 是否记录了文件
///
bool IsRecordFile(string bundleGUID);
///
/// 记录指定文件
///
bool RecordFile(string bundleGUID, CacheWrapper wrapper);
///
/// 验证缓存文件
///
EFileVerifyResult VerifyCacheFile(PackageBundle bundle);
///
/// 写入缓存文件
///
bool WriteCacheFile(PackageBundle bundle, string copyPath);
///
/// 删除缓存文件
///
bool DeleteCacheFile(string bundleGUID);
///
/// 写入文件信息
///
void WriteInfoFile(string filePath, string dataFileCRC, long dataFileSize);
///
/// 读取文件信息
///
void ReadInfoFile(string filePath, out string dataFileCRC, out long dataFileSize);
}
}