(
t: &mut wasm_table_t,
index: wasm_table_size_t,
r: Option<&wasm_ref_t>,
)
| 80 | #[unsafe(no_mangle)] |
| 81 | #[cfg(feature = "gc")] |
| 82 | pub unsafe extern "C" fn wasm_table_set( |
| 83 | t: &mut wasm_table_t, |
| 84 | index: wasm_table_size_t, |
| 85 | r: Option<&wasm_ref_t>, |
| 86 | ) -> bool { |
| 87 | let table = t.table(); |
| 88 | let val = option_wasm_ref_t_to_ref(r, &table.ty(t.ext.store.context())); |
| 89 | table |
| 90 | .set(t.ext.store.context_mut(), u64::from(index), val) |
| 91 | .is_ok() |
| 92 | } |
| 93 | |
| 94 | #[unsafe(no_mangle)] |
| 95 | pub unsafe extern "C" fn wasm_table_size(t: &wasm_table_t) -> wasm_table_size_t { |
nothing calls this directly
no test coverage detected