pub(crate) unsafe fn imported_memory_grow(
        &mut self,
        memory_index: MemoryIndex,
        delta: u32,
    ) -> Option<u32> {
        let import = self.imported_memory(memory_index);
        let foreign_instance_contents = (&mut *import.vmctx).instance_contents();
        let foreign_memory = &mut *import.from;
        let foreign_index = foreign_instance_contents.memory_index(foreign_memory);

        foreign_instance_contents.memory_grow(foreign_index, delta)
    }
/// Grow imported memory by the specified amount of pages.
///
/// Returns `None` if memory can't be grown by the specified amount
/// of pages.
///
/// TODO: This and `imported_memory_size` are currently unsafe because
/// they dereference the memory import's pointers.
Grow imported memory by the specified amount of pages.
Returns `None` if memory can't be grown by the specified amount
of pages.

This and `imported_memory_size` are currently unsafe because
they dereference the memory import's pointers.
Grow imported memory by the specified amount of pages . Returns ` None ` if memory can ' t be grown by the specified amount of pages . This and ` imported_memory_size ` are currently unsafe because they dereference the memory import ' s pointers .
pub(crate) unsafe fn imported_memory_grow(
        &mut self,
        memory_index: MemoryIndex,
        delta: u32,
    ) -> Option<u32> {
        let import = self.imported_memory(memory_index);
        let foreign_instance_contents = (&mut *import.vmctx).instance_contents();
        let foreign_memory = &mut *import.from;
        let foreign_index = foreign_instance_contents.memory_index(foreign_memory);
        foreign_instance_contents.memory_grow(foreign_index, delta)
    }
pub ( crate ) unsafe fn imported_memory_grow ( & mut self , memory_index : MemoryIndex , delta : u32 , ) -> Option < u32 > { let import = self . imported_memory ( memory_index ) ; let foreign_instance_contents = ( & mut * import . vmctx ) . instance_contents ( ) ; let foreign_memory = & mut * import . from ; let foreign_index = foreign_instance_contents . memory_index ( foreign_memory ) ; foreign_instance_contents . memory_grow ( foreign_index , delta ) }
Grow imported memory by the specified amount of pages.
Grow imported memory by the specified amount of pages .
&mut self
memory_index
MemoryIndex
delta
u32