Kaitai Struct 格式库

Kaitai Struct:二进制文件格式库(.ksy)。「Kaitai Struct: library of binary file formats (.ksy)」

Github星跟踪图

Kaitai Struct 格式库

这个资源库是一个使用 Kaitai Struct 语言(.ksy)的现成二进制文件格式描述库。

这些格式可以用于

  • 探索某种文件格式的内部结构:可以在 Web IDEvisualizer 工具中加载 .ksy 格式+目标二进制文件,了解其内部结构。
  • 作为生产就绪的二进制文件解析库:它们可以用 Kaitai Struct 编译器 编译成任何支持的目标编程语言的源代码。
  • 作为学习 Kaitai Struct 在现实世界中应用的起点。

探索这个资源库

如果你想探索这个库,请访问 Kaitai Struct 格式图库 -- 那是这个库的 HTML 演绎,其中有框图,所有可能的目标语言的代码编译,提供了使用示例和说明,等等等等。
另外,你也可以从 Web IDE 开始 -- 这个格式库也预装了它。

贡献

请参阅 CONTRIBUTING

许可证

这个资源库包含了许多人的作品。每一个 .ksy 都是单独授权的:请查看 meta/license 标签和每一个 .ksy 文件中的注释以了解权限。Kaitai 团队对其他人的贡献没有版权要求。


(The first version translated by vz on 2020.09.20)

主要指标

概览
名称与所有者kaitai-io/kaitai_struct_formats
主编程语言Kaitai Struct
编程语言Shell (语言数: 7)
平台Linux, Mac, Windows
许可证
所有者活动
创建于2016-03-27 19:39:10
推送于2025-08-23 18:56:54
最后一次提交2025-08-23 19:11:54
发布数0
用户参与
星数749
关注者数35
派生数213
提交数1.4k
已启用问题?
问题数240
打开的问题数185
拉请求数210
打开的拉请求数206
关闭的拉请求数53
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Kaitai Struct: formats library

This repository constitutes a library of ready-made binary file format
descriptions using Kaitai Struct language (.ksy).

These formats can be useful for:

  • exploring a certain file format internals: one can load .ksy
    format + target binary in a Web IDE or
    visualizer
    and learn what's inside;

  • as a production-ready binary file parsing library: they can be
    compiled with a
    Kaitai Struct compiler
    into source code in any supported target programming language;

  • as a starting point for learning applications of Kaitai Struct in
    real world;

Exploring this repository

If you want to explore the repository, please visit
Kaitai Struct format gallery — that's
HTML rendition of this repository, which block diagrams, all the code
compiled for all possible target languages, provided with usage
examples and instructions, etc, etc.

Alternatively, you can start with Web IDE
this library of formats also comes pre-loaded with it.

Contributing

See CONTRIBUTING.

Licensing

This repository contains work of many individuals. Each .ksy is
licensed separately: please see meta/license tag and comments in
every .ksy file for permissions. Kaitai team claims no copyright over
other people's contributions.