addRegisterFunc<T extends Function> method

void addRegisterFunc<T extends Function>(
  1. String registerHeader,
  2. int type,
  3. Pointer<NativeFunction<T>> func,
  4. AddCallFuncDartType<T> registerFunc,
)

Implementation

void addRegisterFunc<T extends Function>(String registerHeader, int type,
    Pointer<NativeFunction<T>> func, AddCallFuncDartType<T> registerFunc) {
  var registerHeaderPointer = registerHeader.toNativeUtf16();
  registerFunc(_id, registerHeaderPointer, type, func);
  free(registerHeaderPointer);
}