wasmtime_anyref_i31_get_u function
- @Native<Bool Function(Pointer<
wasmtime_context_t> , Pointer<wasmtime_anyref_t> , Pointer<Uint32> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_anyref_t>, ffi.Pointer<ffi.Uint32>)>()
- Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_anyref_t> anyref, - Pointer<
Uint32> dst
\brief Get the anyref's underlying i31ref value, zero extended, if any.
If the given anyref is an instance of i31ref, then its value is zero
extended to 32 bits, written to dst, and true is returned.
If the given anyref is not an instance of i31ref, then false is
returned and dst is left unmodified.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_anyref_t>,
ffi.Pointer<ffi.Uint32>,
)
>()
external bool wasmtime_anyref_i31_get_u(
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_anyref_t> anyref,
ffi.Pointer<ffi.Uint32> dst,
);