wasmtime_component_resource_host_new function
\brief Creates a new host-defined component resource.
This function creates a new host-defined component resource with the
provided parameters. The owned parameter indicates whether this resource
is an own or a borrow in the component model. The rep and ty
parameters are 32-bit integers which only have meaning to the embedder and
are plumbed through with this resource.
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.Bool,
ffi.Uint32,
ffi.Uint32,
)
>()
external ffi.Pointer<wasmtime_component_resource_host_t>
wasmtime_component_resource_host_new(bool owned, int rep, int ty);