NAME
Wasm::Wasmtime::Store - Wasmtime store class
VERSION
version 0.23
SYNOPSIS
use Wasm::Wasmtime;
my $store = Wasm::Wasmtime::Store->new;
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 storage used by the WebAssembly engine.
CONSTRUCTOR
new
my $store = Wasm::Wasmtime::Store->new;
my $store = Wasm::Wasmtime::Store->new(
$engine, # Wasm::Wasmtime::Engine
);
Creates a new storage instance. If the optional Wasm::Wasmtime::Engine object isn't provided, then a new one will be created.
gc
$store->gc;
Garbage collects externref
s that are used within this store. Any externref
s that are discovered to be unreachable by other code or objects will have their finalizers run.
engine
my $engine = $store->engine;
Returns the Wasm::Wasmtime::Engine object for this storage object.
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.