loadFunction<FN extends Function> function
Implementation
Pointer<NativeFunction<FN>> loadFunction<FN extends Function>(
DynamicLibrary lib, String name) {
Pointer<NativeFunction<FN>>? funcPointer;
if (lib.providesSymbol(name)) {
funcPointer = lib.lookup(name);
} else {
funcPointer = loadDynamicFunction(name);
}
return funcPointer;
}