WasmPackage

constructor(manifestBuffer: ByteArray, wasmModule: ByteArray, fileReader: FileReader? = null)

Creates a new WasmPackage instance with the given manifest buffer and wasm module buffer.

Parameters

manifestBuffer

the manifest buffer

wasmModule

the wasm module buffer

fileReader

a file reader used to read other package files


constructor(manifestBuffer: ByteArray, fileReader: FileReader)

Creates a new WasmPackage instance with the given manifest buffer and file reader.

Parameters

manifestBuffer

the manifest buffer

fileReader

a file reader used to read other package files


constructor(fileReader: FileReader, wasmModule: ByteArray)

Creates a new WasmPackage instance with the given wasm module and file reader.

Parameters

fileReader

a file reader used to read other package files

wasmModule

the wasm module buffer


constructor(fileReader: FileReader)

Parameters

fileReader

A FileReader instance used to read the package files, including the Wasm module and WRAP manifest