wasmtime_anyref_as_struct function
- @Native<Bool Function(Pointer<
wasmtime_context_t> , Pointer<wasmtime_anyref_t> , Pointer<wasmtime_structref_t> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_anyref_t>, ffi.Pointer<wasmtime_structref_t>)>()
- Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_anyref_t> anyref, - Pointer<
wasmtime_structref_t> out
\brief Downcast an anyref to a structref.
If the given anyref is a structref, a new root is stored in out and
true is returned. Otherwise false is returned and out is set to null.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_anyref_t>,
ffi.Pointer<wasmtime_structref_t>,
)
>()
external bool wasmtime_anyref_as_struct(
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_anyref_t> anyref,
ffi.Pointer<wasmtime_structref_t> out,
);