polkavm_common::program

Function is_jump_target_valid

Source
pub fn is_jump_target_valid<I>(
    instruction_set: I,
    code: &[u8],
    bitmask: &[u8],
    offset: u32,
) -> bool
where I: InstructionSet,
Expand description

Returns whether a jump to a given offset is allowed.