Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class Exception(exceptionTag: Tag, payload: ReadonlyArray<*>, options: ExceptionOptions = definedExternally)
The WebAssembly.Exception
object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
Link copied to clipboard
interface ExceptionOptions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The WebAssembly.Memory
object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a WebAssembly.Instance
.
Link copied to clipboard
interface MemoryDescriptor
Link copied to clipboard
A WebAssembly.Module
object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
Link copied to clipboard
interface ModuleExportDescriptor
Link copied to clipboard
interface ModuleImportDescriptor
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The WebAssembly.Table
object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
Link copied to clipboard
interface TableDescriptor
Link copied to clipboard
interface WebAssemblyCompileOptions
Link copied to clipboard
interface WebAssemblyInstantiatedSource
Properties
Functions
Link copied to clipboard
Link copied to clipboard
external fun compileAsync(bytes: BufferSource, options: WebAssemblyCompileOptions? = definedExternally): Promise<Module>
Link copied to clipboard
inline suspend fun compileStreaming(source: PromiseLike<Response>, options: WebAssemblyCompileOptions?): Module
Link copied to clipboard
external fun compileStreamingAsync(source: PromiseLike<Response>, options: WebAssemblyCompileOptions? = definedExternally): Promise<Module>
external fun compileStreamingAsync(source: Response, options: WebAssemblyCompileOptions? = definedExternally): Promise<Module>
Link copied to clipboard
inline suspend fun instantiate(bytes: BufferSource, importObject: Imports): WebAssemblyInstantiatedSource
inline suspend fun instantiate(bytes: BufferSource, importObject: Imports, options: WebAssemblyCompileOptions?): WebAssemblyInstantiatedSource
Link copied to clipboard
external fun instantiateAsync(moduleObject: Module, importObject: Imports = definedExternally): Promise<Instance>
external fun instantiateAsync(bytes: BufferSource, importObject: Imports = definedExternally, options: WebAssemblyCompileOptions? = definedExternally): Promise<WebAssemblyInstantiatedSource>
Link copied to clipboard
inline suspend fun instantiateStreaming(source: PromiseLike<Response>): WebAssemblyInstantiatedSource
inline suspend fun instantiateStreaming(source: PromiseLike<Response>, importObject: Imports): WebAssemblyInstantiatedSource
inline suspend fun instantiateStreaming(source: Response, importObject: Imports): WebAssemblyInstantiatedSource
inline suspend fun instantiateStreaming(source: PromiseLike<Response>, importObject: Imports, options: WebAssemblyCompileOptions?): WebAssemblyInstantiatedSource
inline suspend fun instantiateStreaming(source: Response, importObject: Imports, options: WebAssemblyCompileOptions?): WebAssemblyInstantiatedSource
Link copied to clipboard
external fun instantiateStreamingAsync(source: PromiseLike<Response>, importObject: Imports = definedExternally, options: WebAssemblyCompileOptions? = definedExternally): Promise<WebAssemblyInstantiatedSource>
external fun instantiateStreamingAsync(source: Response, importObject: Imports = definedExternally, options: WebAssemblyCompileOptions? = definedExternally): Promise<WebAssemblyInstantiatedSource>
Link copied to clipboard
external fun validate(bytes: BufferSource, options: WebAssemblyCompileOptions? = definedExternally): Boolean