https://github.com/dloss/binary-parsing
Personally I like GNU Poke.
For example:
structures: struct a { strz b, strz c, int d, str[d] e } constraints: len(b) > len(c) d > 6 d <= 10 e ~ /^ABC\d+/
https://github.com/dloss/binary-parsing
Personally I like GNU Poke.