dwrap6<R> method

WF6<R> dwrap6<R>(
  1. String name
)

Binds a cwraped C function taking 6 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

WF6<R> dwrap6<R>(String name) {
  final f = _wn(name, 6);
  final c = _conv<R>();
  return (a1, a2, a3, a4, a5, a6) => c(f.run([a1, a2, a3, a4, a5, a6]));
}