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

Method grow

crates/tinywasm/src/reference.rs:246–248  ·  view source on GitHub ↗

Grow the memory by the given number of pages.

(&self, store: &mut Store, delta_pages: i64)

Source from the content-addressed store, hash-verified

244
245 /// Grow the memory by the given number of pages.
246 pub fn grow(&self, store: &mut Store, delta_pages: i64) -> Result<Option<i64>> {
247 self.instance_mut(store)?.grow(delta_pages, true).map_err(Into::into)
248 }
249
250 /// Get the current size of the memory in pages.
251 pub fn page_count(&self, store: &Store) -> Result<usize> {

Calls 5

table_value_to_elementFunction · 0.85
instance_mutMethod · 0.80
get_table_mutMethod · 0.80
validate_storeMethod · 0.45
sizeMethod · 0.45