wasmtime_global_set function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_context_t> store, Pointer<wasmtime_global_t> global, Pointer<wasmtime_val_t> val)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_global_t>, ffi.Pointer<wasmtime_val_t>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_global_t> global, - Pointer<
wasmtime_val_t> val
\brief Sets a global to a new value.
\param store the store that owns global
\param global the global to set
\param val the value to store in the global
This function may return an error if global is not mutable or if val has
the wrong type for global.
This does not take ownership of any argument but returns ownership of the error.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_global_t>,
ffi.Pointer<wasmtime_val_t>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_global_set(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_global_t> global,
ffi.Pointer<wasmtime_val_t> val,
);