$ModuleWebAssembly class

Available extensions
Annotations
  • @JS('WebAssembly')
  • @staticInterop

Constructors

$ModuleWebAssembly()

Properties

hashCode int
The hash code for this object.
no setterinherited
instantiate → ({Future<WebAssemblyInstantiatedSource> Function(Object bytes, [dynamic importObject]) $1, Future<Instance> Function(Module moduleObject, [dynamic importObject]) $2})

Available on $ModuleWebAssembly, provided by the $ModuleWebAssembly$Typings extension

Overload accessor: $1, $2
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compile(Object bytes) Future<Module>

Available on $ModuleWebAssembly, provided by the $ModuleWebAssembly$Typings extension

The WebAssembly.compile() function compiles WebAssembly binary code into a WebAssembly.Module object. This function is useful if it is necessary to compile a module before it can be instantiated (otherwise, the WebAssembly.instantiate() function should be used).
compileStreaming(Object source) Future<Module>

Available on $ModuleWebAssembly, provided by the $ModuleWebAssembly$Typings extension

The WebAssembly.compileStreaming() function compiles a WebAssembly.Module directly from a streamed underlying source. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the WebAssembly.instantiateStreaming() function should be used).
instantiateStreaming(Object response, [dynamic importObject]) Future<WebAssemblyInstantiatedSource>

Available on $ModuleWebAssembly, provided by the $ModuleWebAssembly$Typings extension

The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load wasm code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(Object bytes) bool

Available on $ModuleWebAssembly, provided by the $ModuleWebAssembly$Typings extension

The WebAssembly.validate() function validates a given typed array of WebAssembly binary code, returning whether the bytes form a valid wasm module (true) or not (false).

Operators

operator ==(Object other) bool
The equality operator.
inherited