(
t: &mut wasm_table_t,
delta: wasm_table_size_t,
init: Option<&wasm_ref_t>,
)
| 101 | #[unsafe(no_mangle)] |
| 102 | #[cfg(feature = "gc")] |
| 103 | pub unsafe extern "C" fn wasm_table_grow( |
| 104 | t: &mut wasm_table_t, |
| 105 | delta: wasm_table_size_t, |
| 106 | init: Option<&wasm_ref_t>, |
| 107 | ) -> bool { |
| 108 | let table = t.table(); |
| 109 | let init = option_wasm_ref_t_to_ref(init, &table.ty(t.ext.store.context())); |
| 110 | table |
| 111 | .grow(t.ext.store.context_mut(), u64::from(delta), init) |
| 112 | .is_ok() |
| 113 | } |
| 114 | |
| 115 | #[unsafe(no_mangle)] |
| 116 | pub extern "C" fn wasm_table_as_extern(t: &mut wasm_table_t) -> &mut wasm_extern_t { |
nothing calls this directly
no test coverage detected