跳到正文

正在自动登录…

← 返回项目列表

CAPCOM-TD-OSS/REDox

数据解析格式转换高性能序列化

RE:Dox 是一个面向 .NET 的高性能、基于 token 的结构化数据引擎,用于解析、编辑、序列化和反序列化多种格式,并支持并行反序列化。适用于需要高性能数据处理和格式转换的 .NET 开发者。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 13:50:39 · 查看原文

值得看C#库与框架
累计 Stars
1,667
当前热度
7~30 天 · 小火
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/14 13:50:39

使用方式

通过 NuGet 包安装,使用 C# API 进行序列化、反序列化、解析和编辑。

查看 README 依据
* **Compatibility layers** for System.Text.Json, Newtonsoft.Json, and DataContractJsonSerializer. * **Apache-2.0 licensed.** ## 3. 30-second example Install the core package: ```bash dotnet add package CAPCOM.REDox ``` Serialize, deserialize, parse, and edit through the same API surface: ```csharp using REDox.Json; var player = new Player { Name = "Leon", Level = 42, Items = ["Handgun", "Green Herb"] }; // Serialize / deserialize var json = JsonSerializer.Serialize(player); var restored = JsonSerializer.Deserialize<Player>(json);
// Parse into a token DOM and edit it in place using var doc = JsonDocument.Parse(json); var root = doc.RootElement.AsObject(); root["Name"] = "Claire"; // replace root.Add("Hp", 100); // add root.Remove("Level"); // remove var items = root["Items"].AsArray(); items.Add("First Aid Spray"); // append items.Insert(0, "Knife"); // insert items.RemoveAt(1); // remove by index var edited = doc.RootElement.ToJsonString(); public sealed class Player { public string? Name { get; set; } public int Level { get; set; }
部署要求

需要 .NET 10 或更高版本。

查看 README 依据
### Thread safety * **`DElement`**: The API is read-only, so a `DElement` can be referenced from multiple threads concurrently. * **`DValue` / `DObject` / `DMap` / `DArray`**: These must **not** be used from multiple threads at the same time. Their internal state can change even for operations that look read-only, such as getting a value or calling `GetPath`. Synchronize access externally, or give each thread its own instance (for example, via deep clone). --- ## Requirements * .NET 10 or later. ## How to build ### 1. Clone with submodules
已知限制

DOX 格式仅适用于可信输入,不应反序列化来自不受信任来源的数据。

查看 README 依据
var dcjSettings = new DataContractJsonSerializerSettings( new System.Runtime.Serialization.Json.DataContractJsonSerializerSettings()); ``` --- ## Security ### Trusted input only for DOX The DOX format handled by `DoxDocument` is a binary layout that mirrors the in-memory token array. It is designed for speed and is not intended to be a defensive parser for hostile data. Accept DOX data **only from trusted sources**. Do not deserialize DOX received from untrusted or unauthenticated origins (network clients, user uploads, etc.). Use a text format such as JSON for untrusted input.

README

正在加载 README…

收录信息

仓库创建时间
2026/9/30 18:20:07
首次达标收录
2026/10/9 11:44:24
统计更新时间
2026/10/22 19:10:50

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 4.1 / 5

新颖度
4.0
实用价值
4.4
成熟度
4.3
实质含量
3.8

由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:55:03 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/19 08:57:37
许可证标识
Apache-2.0
Fork 数
64
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目