wasmtime_exnref_field function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_context_t>, Pointer<wasmtime_exnref_t>, Size, Pointer<wasmtime_val_t>)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_exnref_t>, ffi.Size, ffi.Pointer<wasmtime_val_t>)>()
Pointer<wasmtime_error_t> wasmtime_exnref_field(
  1. Pointer<wasmtime_context_t> store,
  2. Pointer<wasmtime_exnref_t> exn,
  3. int index,
  4. Pointer<wasmtime_val_t> val_ret,
)

\brief Reads a field value from this exception by index.

\param store the store context \param exn the exception to query \param index the field index (0-based) \param val_ret on success, filled with the field value (caller-owned on return).

\return NULL on success, or an error if the index is out of bounds.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_exnref_t>,
    ffi.Size,
    ffi.Pointer<wasmtime_val_t>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_exnref_field(
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<wasmtime_exnref_t> exn,
  int index,
  ffi.Pointer<wasmtime_val_t> val_ret,
);