docs: update core and debug API docs

This commit is contained in:
2026-03-20 02:35:07 +08:00
parent 0c073db4e8
commit e165dbea1c
73 changed files with 743 additions and 391 deletions

View File

@@ -0,0 +1,36 @@
# FileWriter::FileWriter (默认构造)
```cpp
FileWriter();
```
默认构造 FileWriter 对象,不打开任何文件。
**描述**
创建 FileWriter 实例m_file 初始化为 nullptr。可后续通过 Open 方法打开文件。
**线程安全:**
**复杂度:** O(1)
**示例:**
```cpp
#include <XCEngine/Core/FileWriter.h>
using namespace XCEngine::Core;
FileWriter writer;
if (!writer.IsOpen()) {
writer.Open("output.txt");
writer.Write("Hello\n");
writer.Close();
}
```
## 相关文档
- [FileWriter 总览](filewriter.md) - 返回类总览
- [Open](Open.md) - 打开文件
- [FileWriter(filePath, append)](ctor-file.md) - 构造并打开文件