Allocator that can allocate and deallocate to and from a WASM module. This assumes the existence of `memory` Memory as well as `__alloc_bytes` and `__dealloc_bytes` Funcs are exported from the module.
| 19 | /// This assumes the existence of `memory` Memory as well as `__alloc_bytes` and `__dealloc_bytes` Funcs |
| 20 | /// are exported from the module. |
| 21 | pub(crate) struct WasmAlloc { |
| 22 | memory: Memory, |
| 23 | alloc: Func, |
| 24 | dealloc: Func, |
| 25 | } |
| 26 | |
| 27 | impl WasmAlloc { |
| 28 | pub fn from_caller(caller: &mut Caller<JavaState>) -> Option<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…