wasmtime_component_val_clone function

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

\brief Performs a deep copy of the provided src, storing the results into dst.

The dst value must have wasmtime_component_val_delete run to discard its contents.

Implementation

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