Get the current size of the memory in pages.
(&self, store: &Store)
| 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<()> { |