wasmtime_val_clone function

  1. @Native<Void Function(Pointer<wasmtime_val_t>, Pointer<wasmtime_val_t>)>(ffi.Pointer<wasmtime_val_t>, ffi.Pointer<wasmtime_val_t>)>()
void wasmtime_val_clone(
  1. Pointer<wasmtime_val_t> src,
  2. Pointer<wasmtime_val_t> dst
)

\brief Clones the value pointed to by src into the dst provided.

This function will clone any rooted GC values in src and have them newly rooted inside of dst. When using this API the dst should be later unrooted with #wasmtime_val_unroot if it contains GC values.

Implementation

@ffi.Native<
  ffi.Void Function(ffi.Pointer<wasmtime_val_t>, ffi.Pointer<wasmtime_val_t>)
>()
external void wasmtime_val_clone(
  ffi.Pointer<wasmtime_val_t> src,
  ffi.Pointer<wasmtime_val_t> dst,
);