dwrap8<R> method

WF8<R> dwrap8<R>(
  1. String name
)

Binds a cwraped C function taking 8 arguments and returning a plain (non-struct) value.

R determines the JS->Dart return conversion applied on every call (see _conv); use void if the C function returns nothing.

Implementation

WF8<R> dwrap8<R>(String name) {
  final f = _wn(name, 8);
  final c = _conv<R>();
  return (a1, a2, a3, a4, a5, a6, a7, a8) => c(f.run([a1, a2, a3, a4, a5, a6, a7, a8]));
}