wasmtime_anyref_type function

  1. @Native<Bool Function(Pointer<wasmtime_context_t>, Pointer<wasmtime_anyref_t>, Pointer<wasmtime_heaptype_t>)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_anyref_t>, ffi.Pointer<wasmtime_heaptype_t>)>()
bool wasmtime_anyref_type(
  1. Pointer<wasmtime_context_t> context,
  2. Pointer<wasmtime_anyref_t> anyref,
  3. Pointer<wasmtime_heaptype_t> out
)

\brief Returns the type of the specified anyref.

\return If anyref is NULL or represents ref.null any, then false is returned. Otherwise the type of this value is written to out which the caller must deallocate, and true is returned.

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_anyref_t>,
    ffi.Pointer<wasmtime_heaptype_t>,
  )
>()
external bool wasmtime_anyref_type(
  ffi.Pointer<wasmtime_context_t> context,
  ffi.Pointer<wasmtime_anyref_t> anyref,
  ffi.Pointer<wasmtime_heaptype_t> out,
);