Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby / Rust
See the code[!NOTE] If you want to make changes to the project, do not fork this
kaitai_structrepository. Instead, choose the component you want to modify in the file tree above and fork that individual component instead.This is an umbrella repository, containing the components only as submodules to make it easier to check out the entire project. Unless you want to modify this README, it is not the repo where you can make edits.
Kaitai Struct (KS) is a declarative language used to describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.
The main idea is that a particular format is described in Kaitai
Struct language (.ksy file) only once and then can be compiled with
kaitai-struct-compiler (or ksc for short) into source files in one
of the supported programming languages. These modules will include
generated code for a parser that can read the described data structure
from a file or stream and provide access to it in a nice,
easy-to-comprehend API.
Have you ever found yourself writing repetitive, error-prone and hard-to-debug code that reads binary data structures from file / network stream and somehow represents them in memory for easier access?
Kaitai Struct tries to make this job easier — you only have to describe the binary format once and then everybody can use it from their programming languages — cross-language, cross-platform.
Kaitai Struct includes a growing collection of format descriptions, available in formats submodule repository.
Typically, using formats described in KS in your project involves the following steps:
.ksy file.ksy file into a target language source file and include
that file in your projectTo see an example, a list of supported languages, download instructions and licensing information, visit https://kaitai.io/.
(top 24 of 112)
1,854 followers · starred Dec 2023
789 followers · starred Nov 2024
206 followers · starred Apr 2024
52 followers · starred Mar 2020
Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby / Rust
See the code[!NOTE] If you want to make changes to the project, do not fork this
kaitai_structrepository. Instead, choose the component you want to modify in the file tree above and fork that individual component instead.This is an umbrella repository, containing the components only as submodules to make it easier to check out the entire project. Unless you want to modify this README, it is not the repo where you can make edits.
Kaitai Struct (KS) is a declarative language used to describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.
The main idea is that a particular format is described in Kaitai
Struct language (.ksy file) only once and then can be compiled with
kaitai-struct-compiler (or ksc for short) into source files in one
of the supported programming languages. These modules will include
generated code for a parser that can read the described data structure
from a file or stream and provide access to it in a nice,
easy-to-comprehend API.
Have you ever found yourself writing repetitive, error-prone and hard-to-debug code that reads binary data structures from file / network stream and somehow represents them in memory for easier access?
Kaitai Struct tries to make this job easier — you only have to describe the binary format once and then everybody can use it from their programming languages — cross-language, cross-platform.
Kaitai Struct includes a growing collection of format descriptions, available in formats submodule repository.
Typically, using formats described in KS in your project involves the following steps:
.ksy file.ksy file into a target language source file and include
that file in your projectTo see an example, a list of supported languages, download instructions and licensing information, visit https://kaitai.io/.
(top 24 of 112)
1,854 followers · starred Dec 2023
789 followers · starred Nov 2024
206 followers · starred Apr 2024
52 followers · starred Mar 2020