class Wasmer::Instance

Overview

A WebAssembly Instance is a stateful, executable instance of a WebAssembly [Module].

Instance objects contain all the exported WebAssembly functions, memories, tables and globals that allow interacting with WebAssembly.

Specification: https://webassembly.github.io/spec/core/exec/runtime.html#module-instances

Defined in:

wasmer/instance.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(mod : Module, imports : ImportObject) #

Instantiates a new Instance It takes two arguments, the Module and an ImportObject Note: Instantiating a module may raise TrapException if the module's start function traps.


[View source]
def self.new(mod : Module) #

[View source]

Instance Method Detail

def exports : Exports #

[View source]

Macro Detail

macro method_missing(call) #

[View source]