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

Method defined_table_index

crates/environ/src/module.rs:363–371  ·  view source on GitHub ↗
(&self, table: TableIndex)

Source from the content-addressed store, hash-verified

361 /// index is an imported table.
362 #[inline]
363 pub fn defined_table_index(&self, table: TableIndex) -> Option<DefinedTableIndex> {
364 if table.index() < self.num_imported_tables {
365 None
366 } else {
367 Some(DefinedTableIndex::new(
368 table.index() - self.num_imported_tables,
369 ))
370 }
371 }
372
373 /// Test whether the given table index is for an exported table.
374 #[inline]

Callers 9

resolve_table_dataMethod · 0.80
table_alias_regionMethod · 0.80
make_tableMethod · 0.80
get_exported_tableMethod · 0.80
allocate_tablesMethod · 0.80
try_func_table_initMethod · 0.80

Calls 2

newFunction · 0.50
indexMethod · 0.45

Tested by

no test coverage detected