Function
fill_exports
(module: &Module, out: &mut wasm_exporttype_vec_t)
Source from the content-addressed store, hash-verified
| 51 | } |
| 52 | |
| 53 | fn fill_exports(module: &Module, out: &mut wasm_exporttype_vec_t) { |
| 54 | let exports = module |
| 55 | .exports() |
| 56 | .map(|e| { |
| 57 | Some(Box::new(wasm_exporttype_t::new( |
| 58 | e.name().to_owned(), |
| 59 | CExternType::new(e.ty()), |
| 60 | ))) |
| 61 | }) |
| 62 | .collect::<Vec<_>>(); |
| 63 | out.set_buffer(exports); |
| 64 | } |
| 65 | |
| 66 | fn fill_imports(module: &Module, out: &mut wasm_importtype_vec_t) { |
| 67 | let imports = module |
Tested by
no test coverage detected