Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaitai-io/kaitai_struct_ruby_runtime

Kaitai Struct: runtime for Ruby
https://github.com/kaitai-io/kaitai_struct_ruby_runtime

kaitai-struct ruby

Last synced: 2 days ago
JSON representation

Kaitai Struct: runtime for Ruby

Awesome Lists containing this project

README

        

# Kaitai Struct: runtime library for Ruby

[![Gem version](https://img.shields.io/gem/v/kaitai-struct)](https://rubygems.org/gems/kaitai-struct/)
[![Gem downloads](https://img.shields.io/gem/dt/kaitai-struct)](https://rubygems.org/gems/kaitai-struct/#:~:text=TOTAL%20DOWNLOADS)

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:

* [About Kaitai Struct](http://kaitai.io/)
* [About API implemented in this library](http://doc.kaitai.io/stream_api.html)

## 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](https://github.com/kaitai-io/kaitai_struct_ruby_runtime).
Usually you won't `require` it directly, it will be loaded
by Ruby source code generated by Kaitai Struct compiler.