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

Method ty

crates/tinywasm/src/reference.rs:206–208  ·  view source on GitHub ↗

Returns the memory type, including page size and limits.

(&self, store: &Store)

Source from the content-addressed store, hash-verified

204
205 /// Returns the memory type, including page size and limits.
206 pub fn ty(&self, store: &Store) -> Result<MemoryType> {
207 Ok(self.instance(store)?.kind)
208 }
209
210 /// Reads up to `dst.len()` bytes from memory and returns the number of bytes read.
211 ///

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.80

Tested by

no test coverage detected