Kaitai Struct 格式库

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

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownerkaitai-io/kaitai_struct_formats
Primary LanguageKaitai Struct
Program languageShell (Language Count: 7)
PlatformLinux, Mac, Windows
License:
所有者活动
Created At2016-03-27 19:39:10
Pushed At2025-08-23 18:56:54
Last Commit At2025-08-23 19:11:54
Release Count0
用户参与
Stargazers Count749
Watchers Count35
Fork Count213
Commits Count1.4k
Has Issues Enabled
Issues Count240
Issue Open Count185
Pull Requests Count210
Pull Requests Open Count206
Pull Requests Close Count53
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.