Class Module

A WebAssembly module.

class Module
  : wasmer.Handle!(wasmer.bindings.wasm_module_t) ;

Constructors

NameDescription
this (store, wasmBytes)

Methods

NameDescription
deserialize (store, data) Deserializes a module given the bytes of a previously serialized module.
from (store, source) Instantiate a module given a string in the WebAssembly Text Format.
instantiate (imports) Creates a new Instance of this module from the given imports, if any.
serialize () Serializes this module, the result can be saved and later deserialized back into an executable module.
validate (store, data) Validates the given bytes as being a valid WebAssembly module.