Skip to content

kaitai-io/kaitai_struct_ruby_runtime

Repository files navigation

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.