wasmtime_externref_unroot function

  1. @Native<Void Function(Pointer<wasmtime_externref_t>)>(ffi.Pointer<wasmtime_externref_t>)>()
void wasmtime_externref_unroot(
  1. Pointer<wasmtime_externref_t> ref
)

\brief Unroots the pointer ref from the context provided.

This function will enable future garbage collection of the value pointed to by ref once there are no more references. The ref value may be mutated in place by this function and its contents are undefined after this function returns. It should not be used until after re-initializing it.

Note that null externref 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_externref_t>)>()
external void wasmtime_externref_unroot(ffi.Pointer<wasmtime_externref_t> ref);