fromMemory

fun fromMemory(manifest: ByteArray, wasmModule: ByteArray, baseFileReader: FileReader? = null): FileReader

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

Return

A FileReader that reads files from memory.

Parameters

manifest

The content of the manifest file.

wasmModule

The content of the wasm module file.

baseFileReader

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