wasmtime_component_resource_host_clone function
- @Native<Pointer<
wasmtime_component_resource_host_t> Function(Pointer<wasmtime_component_resource_host_t> resource)>(ffi.Pointer<wasmtime_component_resource_host_t>)>()
- Pointer<
wasmtime_component_resource_host_t> resource
\brief Clones a host-defined component resource.
Creates a new owned copy of a host-defined component resource. Note that the returned resource still logically refers to the same resource as before, but this can be convenient from an API perspective.
The pointer returned from this function must be deallocated with
wasmtime_component_resource_host_delete.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_component_resource_host_t> Function(
ffi.Pointer<wasmtime_component_resource_host_t>,
)
>()
external ffi.Pointer<wasmtime_component_resource_host_t>
wasmtime_component_resource_host_clone(
ffi.Pointer<wasmtime_component_resource_host_t> resource,
);