1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*!
Resource Directory.

See [here](../../resources/index.html) for the API docs.

# Examples

```
# #![allow(unused_variables)]
use pelite::pe64::{Pe, PeFile};
use pelite::resources::FindError;

# #[allow(dead_code)]
fn example<'a>(file: PeFile<'a>) -> Result<&'a [u8], FindError> {
	// Access the resources
	let resources = file.resources()?;

	// Find the desired resource by its path
	let data = resources.find_data("/Manifest/2/1033")?;
	let manifest = data.bytes()?;

	Ok(manifest)
}
```
*/

#[cfg(test)]
pub(crate) fn test<'a, P: super::Pe<'a> + Copy>(pe: P) -> ::Result<()> {
	pe.resources().and_then(::resources::test)
}