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<LoadFileDataCallbackBase>> initializer() {
  _funcIndex = _module.addFunction(
    _rawFunction.toJS,
    'ipp'.toJS,
  );
  return WasmMemoryPointer(_funcIndex);
}