pub(crate) unsafe fn imported_memory_size(&mut self, memory_index: MemoryIndex) -> 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_size(foreign_index)
    }
/// Returns the number of allocated wasm pages in an imported memory.
Returns the number of allocated wasm pages in an imported memory.
Returns the number of allocated wasm pages in an imported memory .
pub(crate) unsafe fn imported_memory_size(&mut self, memory_index: MemoryIndex) -> 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_size(foreign_index)
    }
pub ( crate ) unsafe fn imported_memory_size ( & mut self , memory_index : MemoryIndex ) -> 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_size ( foreign_index ) }
Returns the number of allocated wasm pages in an imported memory.
Returns the number of allocated wasm pages in an imported memory .
&mut self
memory_index
MemoryIndex