mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Removed from_vm_export in favor of from_vm_extern
This commit is contained in:
5
lib/api/src/sys/externals/memory.rs
vendored
5
lib/api/src/sys/externals/memory.rs
vendored
@@ -62,9 +62,8 @@ impl Memory {
|
||||
|
||||
/// Create a memory object from an existing memory and attaches it to the store
|
||||
pub fn new_from_existing(new_store: &mut impl AsStoreMut, memory: VMMemory) -> Self {
|
||||
Self {
|
||||
handle: StoreHandle::new(new_store.objects_mut(), memory),
|
||||
}
|
||||
let handle = StoreHandle::new(new_store.objects_mut(), memory);
|
||||
Self::from_vm_extern(new_store, handle.internal_handle())
|
||||
}
|
||||
|
||||
/// Returns the [`MemoryType`] of the `Memory`.
|
||||
|
||||
Reference in New Issue
Block a user