wasmtime_component_resource_host_rep function

  1. @Native<Uint32 Function(Pointer<wasmtime_component_resource_host_t>)>(ffi.Pointer<wasmtime_component_resource_host_t>)>()
int wasmtime_component_resource_host_rep(
  1. Pointer<wasmtime_component_resource_host_t> resource
)

\brief Gets the "rep" of a host-defined component resource.

Returns the 32-bit integer "rep" associated with this resource. This is a trusted value that guests cannot forge.

Implementation

@ffi.Native<
  ffi.Uint32 Function(ffi.Pointer<wasmtime_component_resource_host_t>)
>()
external int wasmtime_component_resource_host_rep(
  ffi.Pointer<wasmtime_component_resource_host_t> resource,
);