use std::fs::File; use std::io::BufReader; fn main() { let file = File::open("tests/swfs/SimpleRedBackground.swf").unwrap(); let reader = BufReader::new(file); let swf_buf = hydroper_swf::decompress_swf(reader).unwrap(); let swf = hydroper_swf::parse_swf(&swf_buf).unwrap(); println!("The SWF has {} frame(s).", swf.header.num_frames()); println!("The SWF has {} tag(s).", swf.tags.len()); }