Module pelite::pe64::resources

source ·
Expand description

Resource Directory.

See here for the API docs.

Examples

use pelite::pe64::{Pe, PeFile};
use pelite::resources::FindError;

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)
}