MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / imported_memory

Method imported_memory

crates/wasmtime/src/runtime/vm/instance.rs:430–432  ·  view source on GitHub ↗

Return the indexed `VMMemoryImport`.

(&self, index: MemoryIndex)

Source from the content-addressed store, hash-verified

428
429 /// Return the indexed `VMMemoryImport`.
430 fn imported_memory(&self, index: MemoryIndex) -> &VMMemoryImport {
431 unsafe { self.vmctx_plus_offset(self.offsets().vmctx_vmmemory_import(index)) }
432 }
433
434 /// Return the indexed `VMGlobalImport`.
435 fn imported_global(&self, index: GlobalIndex) -> &VMGlobalImport {

Callers 2

get_memoryMethod · 0.80
get_exported_memoryMethod · 0.80

Calls 3

vmctx_plus_offsetMethod · 0.80
vmctx_vmmemory_importMethod · 0.80
offsetsMethod · 0.45

Tested by

no test coverage detected