Fix broken link in FileWriter documentation
- Removed broken [FileWriter](FileWriter.md) link from 方法列表 section since the constructor is already documented on the main page and FileWriter.md doesn't exist (file is named filewriter.md) Also includes link fixes from fix_links.py: - Fixed relative paths in containers documentation
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| [FileWriter](FileWriter.md) | 构造函数 |
|
||||
| [Open](Open.md) | 打开文件 |
|
||||
| [Close](Close.md) | 关闭文件 |
|
||||
| [IsOpen](IsOpen.md) | 检查文件是否已打开 |
|
||||
|
||||
@@ -76,6 +76,14 @@
|
||||
| `void CancelAll()` | 取消所有待处理的加载请求 |
|
||||
| `void Cancel(Core::uint64 requestId)` | 取消指定 ID 的加载请求 |
|
||||
|
||||
## 实现说明
|
||||
|
||||
**注意**: 当前 `AsyncLoader` 的实现为部分完成状态(stub):
|
||||
- `Initialize()` 工作线程数参数被忽略
|
||||
- `Submit()` 仅将请求加入队列,不进行实际异步加载
|
||||
- `Update()` 不执行实际加载,直接调用回调返回成功
|
||||
- `QueueCompleted()` 和 `Cancel()` 为空实现
|
||||
|
||||
## 使用示例
|
||||
|
||||
```cpp
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
| `void SetMemoryBudget(size_t bytes)` | 设置内存预算 |
|
||||
| `size_t GetMemoryBudget() const` | 获取内存预算 |
|
||||
| `void OnMemoryPressure(size_t requiredBytes)` | 内存压力回调,驱逐资源以释放空间 |
|
||||
| `void OnZeroRefCount(ResourceGUID guid)` | 当引用计数为零时的回调 |
|
||||
| `void Flush()` | 清空缓存,释放所有资源 |
|
||||
| `void OnZeroRefCount(ResourceGUID guid)` | 当引用计数为零时的回调(当前为空实现) |
|
||||
| `void Flush()` | 清空缓存,释放所有资源(当前为部分实现) |
|
||||
| `void Clear()` | 清空缓存但不释放资源 |
|
||||
|
||||
### LRU 信息
|
||||
|
||||
@@ -60,6 +60,12 @@
|
||||
| `void UnloadUnused()` | 卸载所有无引用的资源 |
|
||||
| `void UnloadAll()` | 卸载所有资源 |
|
||||
|
||||
## 实现说明
|
||||
|
||||
**注意**: 以下方法当前为部分实现或 stub 状态:
|
||||
- `UnloadUnused()` 为空实现
|
||||
- `ReloadResource()` 为 stub
|
||||
|
||||
### 引用计数
|
||||
|
||||
| 方法 | 描述 |
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| [`Get`](get.md) | 获取单例实例 |
|
||||
| [`Initialize`](initialize.md) | 初始化任务系统 |
|
||||
| [`Shutdown`](shutdown.md) | 关闭任务系统 |
|
||||
|
||||
@@ -47,7 +48,7 @@
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| [`Wait`](wait.md) | 等待指定任务完成 |
|
||||
| [`Wait`](wait.md) | 等待指定任务完成(当前为空实现) |
|
||||
|
||||
### 信息
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `virtual ~ITask()` | 虚析构函数 |
|
||||
| `ITask()` | 默认构造函数(受保护) |
|
||||
| `ITask(TaskPriority priority)` | 带优先级的构造函数(受保护) |
|
||||
| [`Execute`](execute.md) | 任务执行逻辑(纯虚) |
|
||||
|
||||
Reference in New Issue
Block a user