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

Method size

crates/tinywasm/src/reference.rs:381–383  ·  view source on GitHub ↗

Get the current number of elements in the table.

(&self, store: &Store)

Source from the content-addressed store, hash-verified

379
380 /// Get the current number of elements in the table.
381 pub fn size(&self, store: &Store) -> Result<usize> {
382 Ok(self.instance(store)?.size() as usize)
383 }
384
385 /// Get a table element as a wasm reference value.
386 pub fn get(&self, store: &Store, index: TableAddr) -> Result<WasmValue> {

Callers 2

growMethod · 0.45
linkMethod · 0.45

Calls 1

instanceMethod · 0.80

Tested by

no test coverage detected