wasmtime_component_resource_host_to_any function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_context_t> ctx, Pointer<wasmtime_component_resource_host_t> resource, Pointer<Pointer<wasmtime_component_resource_any_t>> ret)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_resource_host_t>, ffi.Pointer<ffi.Pointer<wasmtime_component_resource_any_t>>)>()
Pointer<wasmtime_error_t> wasmtime_component_resource_host_to_any(
  1. Pointer<wasmtime_context_t> ctx,
  2. Pointer<wasmtime_component_resource_host_t> resource,
  3. Pointer<Pointer<wasmtime_component_resource_any_t>> ret
)

\brief Same as wasmtime_component_resource_any_to_host except for converting the other way around.

This can fail in some edge-case scenarios but typically does not fail.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_component_resource_host_t>,
    ffi.Pointer<ffi.Pointer<wasmtime_component_resource_any_t>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_component_resource_host_to_any(
  ffi.Pointer<wasmtime_context_t> ctx,
  ffi.Pointer<wasmtime_component_resource_host_t> resource,
  ffi.Pointer<ffi.Pointer<wasmtime_component_resource_any_t>> ret,
);