ImportedMemory

class ImportedMemory(val moduleName: String = WasmModules.ENV_MODULE_NAME, val memoryName: String = "memory", val spec: MemorySpec = MemorySpec.Builder().build()) : MemorySource(source)

The memory is imported from the module moduleName, where it is exported as memoryName. The imported memory's limits are defined by the spec.

Constructors

Link copied to clipboard
constructor(moduleName: String = WasmModules.ENV_MODULE_NAME, memoryName: String = "memory", spec: MemorySpec = MemorySpec.Builder().build())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard