wasmtime_anyref_to_raw function
- @Native<Uint32 Function(Pointer<
wasmtime_context_t> , Pointer<wasmtime_anyref_t> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_anyref_t>)>()
- Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_anyref_t> ref
\brief Converts a #wasmtime_anyref_t to a raw value suitable for storing into a #wasmtime_val_raw_t.
Note that the returned underlying value is not tracked by Wasmtime's garbage collector until it enters WebAssembly. This means that a GC may release the context's reference to the raw value, making the raw value invalid within the context of the store. Do not perform a GC between calling this function and passing it to WebAssembly.
Implementation
@ffi.Native<
ffi.Uint32 Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_anyref_t>,
)
>()
external int wasmtime_anyref_to_raw(
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_anyref_t> ref,
);