(&mut self, address: &str, length: &str, ty: &Type)
| 515 | } |
| 516 | |
| 517 | fn malloc_memory(&mut self, address: &str, length: &str, ty: &Type) -> String { |
| 518 | let size = self.world_gen.sizes.size(ty).size_wasm32(); |
| 519 | let ffi = self |
| 520 | .world_gen |
| 521 | .pkg_resolver |
| 522 | .qualify_package(self.name, FFI_DIR); |
| 523 | format!("let {address} = {ffi}malloc({size} * {length});") |
| 524 | } |
| 525 | |
| 526 | fn is_list_canonical(&self, _resolve: &Resolve, element: &Type) -> bool { |
| 527 | matches!( |
no test coverage detected