MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / table

Method table

crates/tinywasm/src/instance.rs:547–552  ·  view source on GitHub ↗

Get a table export by name.

(&self, name: &str)

Source from the content-addressed store, hash-verified

545
546 /// Get a table export by name.
547 pub fn table(&self, name: &str) -> Result<Table> {
548 match self.require_export(name)? {
549 ExternVal::Table(table_addr) => Ok(Table::from_store_addr(self.0.store_id, table_addr)),
550 _ => Err(Error::Other(format!("Export is not a table: {name}"))),
551 }
552 }
553
554 /// Get a table by its module-local index.
555 ///

Callers

nothing calls this directly

Calls 1

require_exportMethod · 0.80

Tested by

no test coverage detected