invokeWithMemoryEvent method

Object? invokeWithMemoryEvent(
  1. Memory memory,
  2. List<Object?> args, {
  3. int? resultPointer,
  4. WASIComponentCanonicalRealloc? realloc,
})

Starts this canonical operation's waitable event path with memory.

Implementation

Object? invokeWithMemoryEvent(
  wasm.Memory memory,
  List<Object?> args, {
  int? resultPointer,
  WASIComponentCanonicalRealloc? realloc,
}) {
  final invokeWithMemoryEvent = _invokeWithMemoryEvent;
  if (invokeWithMemoryEvent != null) {
    return invokeWithMemoryEvent(memory, args, realloc, resultPointer);
  }
  return invokeWithMemory(
    memory,
    args,
    resultPointer: resultPointer,
    realloc: realloc,
  );
}