wasmtime_anyref_unroot function
- @Native<Void Function(Pointer<
wasmtime_anyref_t> )>(ffi.Pointer<wasmtime_anyref_t>)>()
- Pointer<
wasmtime_anyref_t> ref
\brief Unroots the ref provided within the context.
This API is required to enable the ref value provided to be
garbage-collected. This API itself does not necessarily garbage-collect the
value, but it's possible to collect it in the future after this.
This may modify ref and the contents of ref are left in an undefined
state after this API is called and it should no longer be used.
Note that null or i32 anyref values do not need to be unrooted but are still valid to pass to this function.
Implementation
@ffi.Native<ffi.Void Function(ffi.Pointer<wasmtime_anyref_t>)>()
external void wasmtime_anyref_unroot(ffi.Pointer<wasmtime_anyref_t> ref);