(&self, index: DefinedMemoryIndex)
| 495 | /// the vmctx. |
| 496 | #[inline] |
| 497 | pub fn memory_ptr(&self, index: DefinedMemoryIndex) -> NonNull<VMMemoryDefinition> { |
| 498 | unsafe { |
| 499 | self.vmctx_plus_offset::<VmPtr<_>>(self.offsets().vmctx_vmmemory_pointer(index)) |
| 500 | .as_non_null() |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | /// Return the indexed `VMGlobalDefinition`. |
| 505 | pub fn global_ptr(&self, index: DefinedGlobalIndex) -> NonNull<VMGlobalDefinition> { |
no test coverage detected