What is Kaitai Struct?
Kaitai Struct is a formal language for specifying binary data formats that can be compiled into parser code in Java, JavaScript, Python, and Ruby. The language allows for the declarative description of various binary data structures, such as file formats and network packet formats. The core idea is that a specific format is described using the Kaitai Struct language (.ksy file), which can then be compiled by the ksc tool into source files for the supported programming languages. These generated modules include a parser that can read the described data structure from a file or stream and provide access to it through a user-friendly API
Highlights
- Declarative language for describing binary data structures
- Supports multiple target programming languages: Java, JavaScript, Python, and Ruby
- Compiles .ksy files into source code with a generated parser
- Provides easy-to-use API for accessing the parsed binary data
Features
Ruby
Hex Editor
C-sharp
C++