wasmi_c_api

Function wasm_table_set

source
#[no_mangle]
pub unsafe extern "C" fn wasm_table_set(
    t: &mut wasm_table_t,
    index: wasm_table_size_t,
    new_value: Option<&wasm_ref_t>,
) -> bool
Expand description

Sets the value of the element at index of wasm_table_t to new_value.

Wraps Table::set.

§Safety

It is the caller’s responsibility not to alias the wasm_table_t with its underlying, internal WasmStoreRef.