you are looking for katai struct: https://kaitai.io/ katai allows you to declaratively define a binary format bit for bit - they even have an IDE
you are looking for katai struct: https://kaitai.io/ katai allows you to declaratively define a binary format bit for bit - they even have an IDE