Returns the base pointer, in the host's address space, that the memory is located at. For more information and examples see the documentation on the [`Memory`] type. # Panics Panics if this memory doesn't belong to `store`.
(&self, store: impl AsContext)
| 477 | /// |
| 478 | /// Panics if this memory doesn't belong to `store`. |
| 479 | pub fn data_ptr(&self, store: impl AsContext) -> *mut u8 { |
| 480 | store.as_context()[self.instance] |
| 481 | .memory(self.index) |
| 482 | .base |
| 483 | .as_ptr() |
| 484 | } |
| 485 | |
| 486 | /// Returns the byte length of this memory. |
| 487 | /// |