The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Wasm::Wasmer::Table - WebAssembly table

SYNOPSIS

    my $table = $instance->export('some_named_table');

    printf "Table size: %d\n", $table->size();

DESCRIPTION

This class represents external WebAssembly tables. It subclasses Wasm::Wasmer::Extern.

It’s limited by Wasmer’s own external table support, which currently allows only trivial interactions. Once Wasmer’s table support improves, this library can as well.

METHODS

$size = OBJ->size()

Returns the number of elements in the table.