0.01
Low commit activity in last 3 years
No release in over a year
Kaitai Struct is a declarative language used for 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) and then can be compiled with ksc into source files in one of the supported programming languages. These modules will include a generated code for a parser that can read described data structure from a file / stream and give access to it in a nice, easy-to-comprehend API. This package provides small runtime library used by code generated by Kaitai Struct compiler.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Kaitai Struct: runtime library for Ruby

Gem version Gem downloads

This library implements Kaitai Struct API for Ruby.

Kaitai Struct is a declarative language used for describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.

Further reading:

Installing

Using Gemfile

If your project uses Bundler, just include the line

gem 'kaitai-struct'

in your project's Gemfile.

Using gem install

If you have a RubyGems package manager installed, you can use command

gem install kaitai-struct

to install this runtime library.

Manually

This library is intentionally kept as very simple, one .rb file. You can just copy it to your project from this repository. Usually you won't require it directly, it will be loaded by Ruby source code generated by Kaitai Struct compiler.