Wasm::Wasmtime::ValType - Wasmtime value type class
use Wasm::Wasmtime; my $valtype = Wasm::Wasmtime::ValType->new('i32');
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 Wasm type.
my $valtype = Wasm::Wasmtime::ValType->new($type);
Creates a new value type instance. Acceptable values for
Signed 32 bit integer.
Signed 64 bit integer.
Double precision floating point.
A function pointer.
my $kind = $valtype->kind;
Returns the value type as a string (ie
my $kind = $valtype->kind_num;
Returns the number used internally to represent the type.
my $string = $valtype->to_string;
Converts the type into a string for diagnostics. For this class, this does the same thing as the kind method.
Graham Ollis <email@example.com>
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.