Function
wasmtime_memory_new
(
store: WasmtimeStoreContextMut<'_>,
ty: &wasm_memorytype_t,
ret: &mut Memory,
)
Source from the content-addressed store, hash-verified
| 88 | |
| 89 | #[unsafe(no_mangle)] |
| 90 | pub extern "C" fn wasmtime_memory_new( |
| 91 | store: WasmtimeStoreContextMut<'_>, |
| 92 | ty: &wasm_memorytype_t, |
| 93 | ret: &mut Memory, |
| 94 | ) -> Option<Box<wasmtime_error_t>> { |
| 95 | handle_result(Memory::new(store, ty.ty().ty.clone()), |mem| *ret = mem) |
| 96 | } |
| 97 | |
| 98 | #[unsafe(no_mangle)] |
| 99 | pub extern "C" fn wasmtime_memory_type( |
Tested by
no test coverage detected