pub type ProgramVerification = ProgramVerification;Available on crate features
std and module only.Expand description
Types of validation that a Program can do before parsing the data.
Aliased Type§
#[repr(u32)]pub enum ProgramVerification {
ProgramVerification_Minimal = 0,
ProgramVerification_InternalConsistency = 1,
}Variants§
ProgramVerification_Minimal = 0
Do minimal verification of the data, ensuring that the header appears correct.
Has minimal runtime overhead.
ProgramVerification_InternalConsistency = 1
Do full verification of the data, ensuring that internal pointers are self-consistent and that the data has not been truncated or obviously corrupted. May not catch all types of corruption, but should guard against illegal memory operations during parsing.
Will have higher runtime overhead, scaling with the complexity of the proram data.