wasmtime_table_get function
- @Native<Bool 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_context_t> store, - Pointer<
wasmtime_table_t> table, - int index,
- Pointer<
wasmtime_val_t> val,
\brief Gets a value in a table.
\param store the store that owns table
\param table the table to access
\param index the table index to access
\param val where to store the table's value
This function will attempt to access a table element. If a nonzero value is
returned then val is filled in and is owned by the caller. Otherwise zero
is returned because the index is out-of-bounds.
Implementation
@ffi.Native<
ffi.Bool Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_table_t>,
ffi.Uint64,
ffi.Pointer<wasmtime_val_t>,
)
>()
external bool wasmtime_table_get(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_table_t> table,
int index,
ffi.Pointer<wasmtime_val_t> val,
);