wasmtime_table_set function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_context_t>, Pointer<wasmtime_table_t>, Uint64, Pointer<wasmtime_val_t>)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_table_t>, ffi.Uint64, ffi.Pointer<wasmtime_val_t>)>()
Pointer<wasmtime_error_t> wasmtime_table_set(
  1. Pointer<wasmtime_context_t> store,
  2. Pointer<wasmtime_table_t> table,
  3. int index,
  4. Pointer<wasmtime_val_t> value,
)

\brief Sets a value in a table.

\param store the store that owns table \param table the table to write to \param index the table index to write \param value the value to store.

This function will store value into the specified index in the table. This does not take ownership of any argument but yields ownership of the error. This function can fail if value has the wrong type for the table, or if index is out of bounds.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_table_t>,
    ffi.Uint64,
    ffi.Pointer<wasmtime_val_t>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_table_set(
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<wasmtime_table_t> table,
  int index,
  ffi.Pointer<wasmtime_val_t> value,
);