wasmtime_table_grow function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_context_t> , Pointer<wasmtime_table_t> , Uint64, Pointer<wasmtime_val_t> , Pointer<Uint64> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_table_t>, ffi.Uint64, ffi.Pointer<wasmtime_val_t>, ffi.Pointer<ffi.Uint64>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_table_t> table, - int delta,
- Pointer<
wasmtime_val_t> init, - Pointer<
Uint64> prev_size,
\brief Grows a table.
\param store the store that owns table
\param table the table to grow
\param delta the number of elements to grow the table by
\param init the initial value for new table element slots
\param prev_size where to store the previous size of the table before growth
This function will attempt to grow the table by delta table elements. This
can fail if delta would exceed the maximum size of the table or if init
is the wrong type for this table. If growth is successful then NULL is
returned and prev_size is filled in with the previous size of the table, in
elements, before the growth happened.
This function does not take ownership of any of its arguments.
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>,
ffi.Pointer<ffi.Uint64>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_table_grow(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_table_t> table,
int delta,
ffi.Pointer<wasmtime_val_t> init,
ffi.Pointer<ffi.Uint64> prev_size,
);