wasmtime_component_type_clone function

  1. @Native<Pointer<wasmtime_component_type_t> Function(Pointer<wasmtime_component_type_t> ty)>(ffi.Pointer<wasmtime_component_type_t>)>()
Pointer<wasmtime_component_type_t> wasmtime_component_type_clone(
  1. Pointer<wasmtime_component_type_t> ty
)

\brief Clones a component type.

The returned pointer must be deallocated with wasmtime_component_type_delete.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_component_type_t> Function(
    ffi.Pointer<wasmtime_component_type_t>,
  )
>()
external ffi.Pointer<wasmtime_component_type_t> wasmtime_component_type_clone(
  ffi.Pointer<wasmtime_component_type_t> ty,
);