fn main(){ let a:Vec=std::env::args().collect(); let bytes=std::fs::read(&a[1]).unwrap(); let filter=a.get(2).cloned().unwrap_or_default(); for n in sylpheed_formats::mesh::xbg7_resource_names(&bytes) { if !filter.is_empty() && !n.contains(&filter) { continue } if let Some((m,stride))=sylpheed_formats::mesh::debug_resource_params(&bytes,&n) { println!("{n:<28} stride {stride} markers {:?}", &m[..m.len().min(4)]); } } }