Code Snippets Kaitai Struct

Short texts Kaitai Struct 🧑‍💻 Code snippets Kaitai Struct ✍️ Reading lists Kaitai Struct 👀

Kaitai Struct format for BL2/TPS Profile files

meta: id: decompressed title: BL2/TPS Decompressed Profile Data endian: be seq: – id: setting_count type: u4 – id: all_settings type: online_profile_setting repeat: expr repeat-expr: setting_count types: online_profile_setting: seq: – id: owner type: u1 enum: online_profile_property_owner – id: id type: u4 – id: type type: u1 enum: settings_data_type – id: data type: switch-on: type cases: settings_data_type::int32: […]

Kaitai Struct format for BL2/TPS Profile files

meta: id: decompressed title: BL2/TPS Decompressed Profile Data endian: be seq: – id: setting_count type: u4 – id: all_settings type: online_profile_setting repeat: expr repeat-expr: setting_count types: online_profile_setting: seq: – id: owner type: u1 enum: online_profile_property_owner – id: id type: u4 – id: type type: u1 enum: settings_data_type – id: data type: switch-on: type cases: settings_data_type::int32: […]

Kaitai MP3 parser

meta: id: mp3 file-extension: mp3 seq: – id: frame0 type: frame – id: frames type: frame repeat: expr repeat-expr: 50 # TODO: just testing types: frame: seq: – id: header type: header valid: expr: ” _.mpeg1 == _parent.frame0.header.mpeg1 and _.layer == _parent.frame0.header.layer and _.sample_rate == _parent.frame0.header.sample_rate and _.free_format == _parent.frame0.header.free_format ” – id: data size: […]