invokeFlat method
List<Object?>
invokeFlat(
- List<
Object?> args, { - Memory? memory,
- WASIComponentCanonicalRealloc? realloc,
Invokes this canonical operation through flat Canonical ABI scalars.
Implementation
List<Object?> invokeFlat(
List<Object?> args, {
wasm.Memory? memory,
WASIComponentCanonicalRealloc? realloc,
}) {
final invokeFlat = _invokeFlat;
if (invokeFlat == null) {
throw UnsupportedError(
'WASI component canonical ${kind.name} does not support flat invocation.',
);
}
return invokeFlat(args, memory, realloc);
}