fromWasmModule

fun fromWasmModule(wasmModule: ByteArray, baseFileReader: FileReader): FileReader

Creates a FileReader that reads files from memory. The wasmModule parameter is the content of the wasm module file. The baseFileReader parameter is an optional FileReader that will be used to read files that are not the wasm module. If baseFileReader is not specified, then an error will be returned when a file other than the wasm module is read.

Return

A FileReader that reads files from memory.

Parameters

wasmModule

The content of the wasm module file.

baseFileReader

An optional FileReader that will be used to read files that are not the wasm module.