Returns a `span` of where this memory is located in the host. Note that embedders need to be very careful in their usage of the returned `span`. It can be invalidated with calls to `grow` and/or calls into WebAssembly.
| 58 | /// `span`. It can be invalidated with calls to `grow` and/or calls into |
| 59 | /// WebAssembly. |
| 60 | Span<uint8_t> data(Store::Context cx) const { |
| 61 | auto *base = wasmtime_memory_data(cx.ptr, &memory); |
| 62 | auto size = wasmtime_memory_data_size(cx.ptr, &memory); |
| 63 | return {base, size}; |
| 64 | } |
| 65 | |
| 66 | /// Grows the memory by `delta` WebAssembly pages. |
| 67 | /// |
nothing calls this directly
no test coverage detected