wasmtime_anyref_clone function

  1. @Native<Void Function(Pointer<wasmtime_anyref_t>, Pointer<wasmtime_anyref_t>)>(ffi.Pointer<wasmtime_anyref_t>, ffi.Pointer<wasmtime_anyref_t>)>()
void wasmtime_anyref_clone(
  1. Pointer<wasmtime_anyref_t> anyref,
  2. Pointer<wasmtime_anyref_t> out
)

\brief Creates a new reference pointing to the same data that anyref points to (depending on the configured collector this might increase a reference count or create a new GC root).

The returned reference is stored in out.

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Pointer<wasmtime_anyref_t>,
    ffi.Pointer<wasmtime_anyref_t>,
  )
>()
external void wasmtime_anyref_clone(
  ffi.Pointer<wasmtime_anyref_t> anyref,
  ffi.Pointer<wasmtime_anyref_t> out,
);