wasmtime_component_clone function

  1. @Native<Pointer<wasmtime_component_t> Function(Pointer<wasmtime_component_t> component)>(ffi.Pointer<wasmtime_component_t>)>()
Pointer<wasmtime_component_t> wasmtime_component_clone(
  1. Pointer<wasmtime_component_t> component
)

\brief Creates a shallow clone of the specified component, increasing the internal reference count.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_component_t> Function(ffi.Pointer<wasmtime_component_t>)
>()
external ffi.Pointer<wasmtime_component_t> wasmtime_component_clone(
  ffi.Pointer<wasmtime_component_t> component,
);