pub(crate) fn ensure_memory_inner( memory: &mut SharedMemory, gas: &mut Gas, offset: usize, len: usize, ) -> InstructionResult