pelite/pe64/
rich_structure.rs

1
2#[cfg(test)]
3pub(crate) fn test<'a, P: super::Pe<'a>>(pe: P) -> crate::Result<()> {
4	let rich_structure = pe.rich_structure()?;
5	let _checksum = rich_structure.checksum();
6
7	let records: Vec<_> = rich_structure.records().collect();
8	let mut encoded = vec![0u32; rich_structure.image().len()];
9	let _ = rich_structure.encode(&records, &mut encoded);
10
11	Ok(())
12}