wasmtime_val_unroot function

  1. @Native<Void Function(Pointer<wasmtime_val_t>)>(ffi.Pointer<wasmtime_val_t>)>()
void wasmtime_val_unroot(
  1. Pointer<wasmtime_val_t> val
)

\brief Unroot the value contained by val.

This function will unroot any GC references that val points to, for example if it has the WASMTIME_EXTERNREF, WASMTIME_ANYREF, or WASMTIME_EXNREF kinds. This function leaves val in an undefined state and it should not be used again without re-initializing.

This method does not need to be called for integers, floats, v128, or funcref values.

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<wasmtime_val_t>)>()
external void wasmtime_val_unroot(ffi.Pointer<wasmtime_val_t> val);