initializer method
Backend-specific: produces the callable native pointer for function.
Native: wraps a NativeCallable<C>, returns its nativeFunction cast to RVoid.
Wasm: registers via addFunction(jsFunction, signature), wraps the int as a pointer.
Implementation
@override
MemoryPointer<RFunction<SaveFileDataCallbackBase>> initializer() {
_funcIndex = _module.addFunction(
_rawFunction.toJS,
'ippi'.toJS,
);
return WasmMemoryPointer(_funcIndex);
}