fromFunction<T extends Function> static method
Implementation
static Pointer<NativeFunction<T>> fromFunction<T extends Function>(Function f,
[Object? exceptionalReturn,
Memory? bindToMemory,
WasmTable? bindToTable]) {
final Memory? memory = bindToMemory ?? Memory.global;
final WasmTable? table = bindToTable ?? WasmTable.global;
return pointerFromFunctionImpl(f, table!, memory!);
}