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 months ago
JSON representation
Kaitai Struct: runtime for Ruby
- Host: GitHub
- URL: https://github.com/kaitai-io/kaitai_struct_ruby_runtime
- Owner: kaitai-io
- License: mit
- Created: 2016-02-20T12:47:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-18T20:54:39.000Z (3 months ago)
- Last Synced: 2025-04-19T07:45:33.534Z (3 months ago)
- Topics: kaitai-struct, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/kaitai-struct
- Size: 79.1 KB
- Stars: 19
- Watchers: 9
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kaitai - Repository - io/kaitai_struct_ruby_runtime/issues)) (Runtimes / CI)
README
# Kaitai Struct: runtime library for Ruby
[](https://rubygems.org/gems/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](https://kaitai.io/)
* [About API implemented in this library](https://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.