3 ms·
For such a problem, I really recommend https://kaitai.io/ https://kaitai.io/ From their website: > Kaitai Struct is a declarative language used to describe va
by Labo333 5y ago
For such a problem, I really recommend https://kaitai.io/ https://kaitai.io/
From their website:
> Kaitai Struct is a declarative language used to describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.
They even have a Rust interface: https://github.com/kaitai-io/kaitai_struct_rust_runtime https://github.com/kaitai-io/kaitai_struct_rust_runtime
- rudibe 5y agoA native Rust solution, with meta-programming: https://crates.io/crates/packed_struct https://crates.io/crates/packed_struct (written by me)