1 个仓库
Tools that generate source code for writing data back into binary streams based on a shared specification.
Distinct from Binary Serialization: Focuses on the generation of the serialization code rather than the runtime act of serializing data.
Explore 1 awesome GitHub repository matching data & databases · Serializer Generators. Refine with filters or upvote what's useful.
Kaitai Struct 是一个声明式二进制规范框架,提供跨多种编程语言的自动化解析器和序列化器生成。它使用一种可移植的领域特定语言来描述二进制文件和网络数据包的布局,并将这些规范转换为用于读取和写入二进制数据的源代码。 该系统通过将单一结构定义翻译为包括 C++、C#、Go、Java、JavaScript、Python 和 Rust 在内的多种语言的原生源代码,实现了跨语言数据处理。这种方法允许在不同平台上实现相同的二进制数据规范,而无需手动重写解析逻辑。 该框架涵盖二进制数据建模和处理,包括管理用于偏移导航的读取指针以及应用解压和解密等数据转换的能力。它还提供格式规范调试工具,以验证二进制数据布局与其声明性描述之间的映射。
Converts declarative data specifications into source code that writes structured data back to binary streams.