pub fn check_permission<M: Memory>( memory: &mut M, page_indices: &(u64, u64), flag: u8, ) -> Result<(), Error>