swrap0 method

WF1<void> swrap0(
  1. String name
)

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

The single parameter is the caller-allocated pointer the struct is written into. Always returns void, read the result back out of the pointer you passed in.

Implementation

WF1<void> swrap0(String name) {
  final f = _ws(name, 0);
  return (a1) => f.run([a1]);
}