Skip to main content

lookup_compatibility_mask

Function lookup_compatibility_mask 

Source
pub fn lookup_compatibility_mask(
    platforms: &[IgvmPlatformHeader],
    platform: IgvmPlatformType,
) -> Result<u32>
Expand description

Look up the compatibility mask for a given platform type by reading the platform headers from the IGVM file.

Each IGVM file declares its own platform-to-mask mapping via IGVM_VHS_SUPPORTED_PLATFORM headers.

Returns an error if the requested platform type is not present in the file’s platform headers.