wasmtime_exnref_to_raw function

  1. @Native<Uint32 Function(Pointer<wasmtime_context_t>, Pointer<wasmtime_exnref_t>)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_exnref_t>)>()
int wasmtime_exnref_to_raw(
  1. Pointer<wasmtime_context_t> context,
  2. Pointer<wasmtime_exnref_t> ref
)

\brief Converts a #wasmtime_exnref_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_exnref_t>,
  )
>()
external int wasmtime_exnref_to_raw(
  ffi.Pointer<wasmtime_context_t> context,
  ffi.Pointer<wasmtime_exnref_t> ref,
);