swrap6 method

WF7<void> swrap6(
  1. String name
)

Binds a cwraped C function taking 6 arguments that returns a struct via the WASM structure-return (sret) convention.

The first parameter is the caller-allocated pointer the struct is written into, followed by the function's real arguments. Always returns void, read the result back out of the pointer you passed in.

Implementation

WF7<void> swrap6(String name) {
  final f = _ws(name, 6);
  return (a1, a2, a3, a4, a5, a6, a7) => f.run([a1, a2, a3, a4, a5, a6, a7]);
}