ci / ubuntu-latest / clang (push) Failing after 16m57s
ci / ubuntu-latest / gcc (push) Failing after 36s
ci / coverage / gcc (push) Failing after 36s
ci / macos-latest / apple-clang (push) Canceled after 0s
ci / windows-latest / mingw (push) Canceled after 0s
ci / windows-latest / msvc (push) Canceled after 0s
979 B
979 B
io 模块
AI 自动生成,基于源代码扫描(Doxygen)。最后更新: 2026-09-27
再生成:python tools/api/gen_api_docs.py(examples.md / call-graph.md 人工维护,不覆盖)
职责
模型序列化:二进制(版本化紧凑格式)与 JSON 双路径往返
依赖
model、infra
头文件
include/vdcs/io/serializer.h
模块级函数 / 常量 / 枚举
| 名称 | 签名 / 值 | 说明 |
|---|---|---|
LoadModel |
Result< Model > vdcs::LoadModel(const std::string &path) |
从原生二进制格式加载 |
LoadModelJson |
Result< Model > vdcs::LoadModelJson(const std::string &path) |
从 JSON 格式加载 |
SaveModel |
Result< void > vdcs::SaveModel(const Model &model, const std::string &path) |
保存为原生二进制格式(.vdcs) |
SaveModelJson |
Result< void > vdcs::SaveModelJson(const Model &model, const std::string &path) |
保存为 JSON 格式(调试/交换用) |