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

Method table_ptr

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

Return a pointer to the `index`'th table within this instance, stored in vmctx memory.

(&self, index: DefinedTableIndex)

Source from the content-addressed store, hash-verified

461 /// Return a pointer to the `index`'th table within this instance, stored
462 /// in vmctx memory.
463 pub fn table_ptr(&self, index: DefinedTableIndex) -> NonNull<VMTableDefinition> {
464 unsafe { self.vmctx_plus_offset_raw(self.offsets().vmctx_vmtable_definition(index)) }
465 }
466
467 /// Get a locally defined or imported memory.
468 #[cfg(all(has_host_compiler_backend, feature = "debug-builtins"))]

Callers 4

vmimportMethod · 0.80
hash_keyMethod · 0.80
tableMethod · 0.80
set_tableMethod · 0.80

Calls 3

vmctx_plus_offset_rawMethod · 0.80
offsetsMethod · 0.45

Tested by

no test coverage detected