defineMemory method

void defineMemory(
  1. String module,
  2. String name,
  3. WasmStore store,
  4. WasmMemory memory,
)

Defines module.name as an existing memory.

The memory has to belong to the store that is used for instantiation.

Implementation

void defineMemory(
  String module,
  String name,
  WasmStore store,
  WasmMemory memory,
) => _defineExtern(module, name, store, memory);