Skip to main content

read_igvm_image

Function read_igvm_image 

Source
pub fn read_igvm_image(path: &Path) -> Result<Vec<u8>>
Expand description

Read an IGVM image from path, transparently extracting it from a vmfirmwareigvm resource DLL when path points at a PE/DLL rather than a raw IGVM file.

A resource DLL is a PE image beginning with the MZ signature; a raw IGVM file does not. When a PE is detected, the embedded VMFW resource is returned; otherwise the file bytes are returned unchanged.