pjullrich/ksc
Changelog
v0.2.1 — 2026-05-29
Added
- Windows-1252 and ISO-8859-1 (Latin-1) string encodings, on both read and write.
Changed
- Reading a string in an unsupported encoding now raises instead of silently returning the raw, undecoded bytes (which produced invalid UTF-8 downstream).
v0.2.0 — 2026-05-29
- Write-back. Compile with
writer: true(--writer) to generateto_binary/1andto_file/2, inverting every read operation. - Automatic length/count controllers:
size:/repeat-expr:fields are recomputed from the actual payload on write. process: xorwith a multi-byte key is now ~5× faster.
v0.1.0 — 2026-02-26
Initial release: a Kaitai Struct compiler and parsing runtime for Elixir.
mix ksc.compileturns.ksyfiles into Elixir modules withfrom_binary/1andfrom_file/1.- Covers integers/floats, bit fields, enums, strings/encodings, user and switch
types, repeats, instances, expressions, and
processsteps. - Validated against the official Kaitai Struct test suite.