Wasm::Wasmtime::MemoryType - Wasmtime memory type class
version 0.11
use Wasm::Wasmtime; # new memory type with minimum 3 and maximum 5 pages my $memorytype = Wasm::Wasmtime::MemoryType->new([3,5]);
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 memory type. It models the minimum and maximum number of pages.
my $memorytype = Wasm::Wasmtime::MemoryType->new([ $min, # minumum number of pages $max # maximum number of pages ]);
Creates a new memory type object.
my $limits = $memorytype->limits;
Returns the minimum and maximum number of pages as an array reference.
my $string = $memorytype->to_string;
Converts the type into a string for diagnostics.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2020 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.
To install Wasm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wasm
CPAN shell
perl -MCPAN -e shell install Wasm
For more information on module installation, please visit the detailed CPAN module installation guide.