docs: rebuild Memory API content

This commit is contained in:
2026-03-26 18:02:29 +08:00
parent ce2eee32e3
commit dc252502ac
66 changed files with 1182 additions and 1066 deletions

View File

@@ -1,30 +1,20 @@
# PoolAllocator::GetTotalBlockCount
获取相关状态或对象
查询池中的总 block 数
```cpp
size_t GetTotalBlockCount() const;
```
该方法声明于 `XCEngine/Memory/PoolAllocator.h`,当前页面用于固定 `PoolAllocator` 类目录下的方法级 canonical 路径。
## 行为说明
**参数:**
当前头文件内联实现直接返回 `m_totalBlocks`,也就是构造时指定的 block 数量
**返回:** `size_t` - 返回值语义详见头文件声明。
## 返回值
**示例:**
```cpp
#include <XCEngine/Memory/PoolAllocator.h>
void Example() {
XCEngine::Memory::PoolAllocator object;
// 根据上下文补齐参数后调用 PoolAllocator::GetTotalBlockCount(...)。
(void)object;
}
```
- `size_t` - 池的总 block 数。
## 相关文档
- [返回类总览](PoolAllocator.md)
- [返回模块目录](../Memory.md)
- [返回类总览](PoolAllocator.md)
- [GetFreeBlockCount](GetFreeBlockCount.md)