Function table_init
Source pub(super) unsafe fn table_init(
store_modules: &AddrVec<ModuleAddr, ModuleInst<'_>>,
store_tables: &mut AddrVec<TableAddr, TableInst>,
store_elements: &AddrVec<ElemAddr, ElemInst>,
current_module: ModuleAddr,
elem_idx: ElemIdx,
table_idx: TableIdx,
n: u32,
s: i32,
d: i32,
) -> Result<(), RuntimeError>
Expand description
ยงSafety
- The module address
current_module must be valid in store_modules for a module instance module_inst.
- The table index
table_idx must be valid in module_inst for a table address table_addr.
table_addr must be valid in store_tables.
- The element index
elem_idx must be valid in module_inst for an element address elem_addr.
elem_addr must be valid in store_elements.