Wasm::Wasmtime::TableType - Wasmtime table type class
version 0.23
use Wasm::Wasmtime; my $tabletype = Wasm::Wasmtime::TableType->new('i32',[2,10]);
WARNING: WebAssembly and Wasmtime are a moving target and the interface for these modules is under active development. Use with caution.
This class represents a module table type.
my $tabletype = Wasm::Wasmtime::TableType->new( $valtype, # Wasm::Wasmtime::ValType [$min,$max], # integer limits );
Creates a new table type object.
As a shortcut, the type names (ie i32
, etc) maybe used instead of a Wasm::Wasmtime::ValType for $valtype
.
my $valtype = $tabletype->element;
Returns the Wasm::Wasmtime::ValType for this table type.
my $limits = $tabletype->limits;
Returns the limits as an array reference.
my $string = $tabletype->to_string;
Converts the type into a string for diagnostics.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2020-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.