-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
See:
- https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Table
- https://wasmerio.github.io/wasmer-python/api/wasmer/wasmer.html#TableType
$table = new Wasm\Table(minimum: 2, maximum: null, type: 'i32', init: $initValue);
$instance = Wasm\InstanceBuilder::fromWat($wat)
->withImports(['env' => ['someTable' => $table]])
->build();
$table = $instance->getTable();
$table->set(0, 1);
$table->get(0);
$table->count(); // implements \Countable
$table->grow(2, $initValue);
// possibly:
[...$table] // implements Iterator | IteratorAggregate
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Projects
Status
Todo