wasm_global_set

Function wasm_global_set 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wasm_global_set( g: &mut wasm_global_t, val: &wasm_val_t, )
Expand description

Sets the current value of the wasm_global_t.

Wraps Global::set.

§Safety

  • It is the caller’s responsibility that val matches the type of g.
  • It is the caller’s responsibility not to alias the wasm_global_t with its underlying, internal WasmStoreRef.