NAME
Wasm::Wasmtime::TableType - Wasmtime table type class
VERSION
version 0.23
SYNOPSIS
use Wasm::Wasmtime;
my $tabletype = Wasm::Wasmtime::TableType->new('i32',[2,10]);
DESCRIPTION
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.
CONSTRUCTOR
new
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
.
element
my $valtype = $tabletype->element;
Returns the Wasm::Wasmtime::ValType for this table type.
limits
my $limits = $tabletype->limits;
Returns the limits as an array reference.
to_string
my $string = $tabletype->to_string;
Converts the type into a string for diagnostics.
SEE ALSO
AUTHOR
Graham Ollis <plicease@cpan.org>
COPYRIGHT AND LICENSE
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.