Grow the memory by the given number of pages.
(&self, store: &mut Store, delta_pages: i64)
| 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> { |