Files
XCEngine/docs/api/XCEngine/Memory/LinearAllocator/GetTotalFreed.md

20 lines
345 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# LinearAllocator::GetTotalFreed
2026-03-26 18:02:29 +08:00
查询累计释放量。
2026-03-26 16:45:24 +08:00
```cpp
size_t GetTotalFreed() const override;
```
2026-03-26 18:02:29 +08:00
## 行为说明
2026-03-26 16:45:24 +08:00
2026-03-26 18:02:29 +08:00
当前头文件内联实现固定返回 `0`,因为 `LinearAllocator` 目前不做单块释放统计。
2026-03-26 16:45:24 +08:00
2026-03-26 18:02:29 +08:00
## 返回值
2026-03-26 16:45:24 +08:00
2026-03-26 18:02:29 +08:00
- `size_t` - 当前固定为 `0`
2026-03-26 16:45:24 +08:00
## 相关文档
2026-03-26 18:02:29 +08:00
- [返回类型总览](LinearAllocator.md)