@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="WebAssembly")
public final class WebAssemblyNamespace
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Promise<Module> |
compile(BufferSource bytes)
The WebAssembly.compile() function compiles WebAssembly binary code into a WebAssembly.Module object.
|
Promise<Module> |
compileStreaming(Promise<Response> source)
The WebAssembly.compileStreaming() function compiles a WebAssembly.Module directly from a streamed underlying source.
|
Promise<WebAssemblyInstantiatedSource> |
instantiate(BufferSource bytes)
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
|
Promise<WebAssemblyInstantiatedSource> |
instantiate(BufferSource bytes,
java.lang.Object importObject)
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
|
Promise<Instance> |
instantiate(Module moduleObject)
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
|
Promise<Instance> |
instantiate(Module moduleObject,
java.lang.Object importObject)
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
|
Promise<WebAssemblyInstantiatedSource> |
instantiateStreaming(Promise<Response> source)
The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source.
|
Promise<WebAssemblyInstantiatedSource> |
instantiateStreaming(Promise<Response> source,
java.lang.Object importObject)
The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source.
|
boolean |
validate(BufferSource bytes)
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).
|
@Nonnull public Promise<Module> compile(@Nonnull BufferSource bytes)
@Nonnull public Promise<Module> compileStreaming(@Nonnull Promise<Response> source)
@Nonnull public Promise<Instance> instantiate(@Nonnull Module moduleObject, @Nonnull java.lang.Object importObject)
@Nonnull public Promise<Instance> instantiate(@Nonnull Module moduleObject)
@Nonnull public Promise<WebAssemblyInstantiatedSource> instantiate(@Nonnull BufferSource bytes, @Nonnull java.lang.Object importObject)
@Nonnull public Promise<WebAssemblyInstantiatedSource> instantiate(@Nonnull BufferSource bytes)
@Nonnull public Promise<WebAssemblyInstantiatedSource> instantiateStreaming(@Nonnull Promise<Response> source, @Nonnull java.lang.Object importObject)
@Nonnull public Promise<WebAssemblyInstantiatedSource> instantiateStreaming(@Nonnull Promise<Response> source)
public boolean validate(@Nonnull
BufferSource bytes)