MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / page_count

Method page_count

crates/tinywasm/src/reference.rs:251–253  ·  view source on GitHub ↗

Get the current size of the memory in pages.

(&self, store: &Store)

Source from the content-addressed store, hash-verified

249
250 /// Get the current size of the memory in pages.
251 pub fn page_count(&self, store: &Store) -> Result<usize> {
252 Ok(self.instance(store)?.page_count)
253 }
254
255 /// Copy a slice of memory to another place in memory.
256 pub fn copy_within(&self, store: &mut Store, src: usize, dst: usize, len: usize) -> Result<()> {

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.80

Tested by

no test coverage detected