Documentation ¶
Index ¶
- func Instantiate(ctx context.Context, r wazero.Runtime, mod wazero.CompiledModule) (api.Closer, error)
- type FPDF_FILEACCESS_CB
- type FPDF_FILEWRITE_CB
- type FPDF_FORMFILLINFO_FFI_DoGoToAction_CB
- type FPDF_FORMFILLINFO_FFI_DoURIAction_CB
- type FPDF_FORMFILLINFO_FFI_ExecuteNamedAction_CB
- type FPDF_FORMFILLINFO_FFI_GetCurrentPage_CB
- type FPDF_FORMFILLINFO_FFI_GetLocalTime_CB
- type FPDF_FORMFILLINFO_FFI_GetPage_CB
- type FPDF_FORMFILLINFO_FFI_GetRotation_CB
- type FPDF_FORMFILLINFO_FFI_Invalidate_CB
- type FPDF_FORMFILLINFO_FFI_KillTimer_CB
- type FPDF_FORMFILLINFO_FFI_OnChange_CB
- type FPDF_FORMFILLINFO_FFI_OutputSelectedRect_CB
- type FPDF_FORMFILLINFO_FFI_SetCursor_CB
- type FPDF_FORMFILLINFO_FFI_SetTextFieldFocus_CB
- type FPDF_FORMFILLINFO_FFI_SetTimer_CB
- type FPDF_FORMFILLINFO_Release_CB
- type FSDK_SetLocaltimeFunction_CB
- type FSDK_SetTimeFunction_CB
- type FX_DOWNLOADHINTS_ADD_SEGMENT_CB
- type FX_FILEAVAIL_IS_DATA_AVAILABLE_CB
- type FunctionExporter
- type IFSDK_PAUSE_NeedToPauseNow_CB
- type UNSUPPORT_INFO_HANDLER_CB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
func Instantiate(ctx context.Context, r wazero.Runtime, mod wazero.CompiledModule) (api.Closer, error)
Instantiate instantiates the "env" module used by Emscripten into the runtime default namespace.
Notes ¶
- Closing the wazero.Runtime has the same effect as closing the result.
- To add more functions to the "env" module, use FunctionExporter.
- To instantiate into another wazero.Namespace, use FunctionExporter.
Types ¶
type FPDF_FILEACCESS_CB ¶
type FPDF_FILEACCESS_CB struct { }
type FPDF_FILEWRITE_CB ¶
type FPDF_FILEWRITE_CB struct { }
type FPDF_FORMFILLINFO_FFI_DoGoToAction_CB ¶
type FPDF_FORMFILLINFO_FFI_DoGoToAction_CB struct { }
type FPDF_FORMFILLINFO_FFI_DoURIAction_CB ¶
type FPDF_FORMFILLINFO_FFI_DoURIAction_CB struct { }
type FPDF_FORMFILLINFO_FFI_ExecuteNamedAction_CB ¶
type FPDF_FORMFILLINFO_FFI_ExecuteNamedAction_CB struct { }
type FPDF_FORMFILLINFO_FFI_GetCurrentPage_CB ¶
type FPDF_FORMFILLINFO_FFI_GetCurrentPage_CB struct { }
type FPDF_FORMFILLINFO_FFI_GetLocalTime_CB ¶
type FPDF_FORMFILLINFO_FFI_GetLocalTime_CB struct { }
type FPDF_FORMFILLINFO_FFI_GetPage_CB ¶
type FPDF_FORMFILLINFO_FFI_GetPage_CB struct { }
type FPDF_FORMFILLINFO_FFI_GetRotation_CB ¶
type FPDF_FORMFILLINFO_FFI_GetRotation_CB struct { }
type FPDF_FORMFILLINFO_FFI_Invalidate_CB ¶
type FPDF_FORMFILLINFO_FFI_Invalidate_CB struct { }
type FPDF_FORMFILLINFO_FFI_KillTimer_CB ¶
type FPDF_FORMFILLINFO_FFI_KillTimer_CB struct { }
type FPDF_FORMFILLINFO_FFI_OnChange_CB ¶
type FPDF_FORMFILLINFO_FFI_OnChange_CB struct { }
type FPDF_FORMFILLINFO_FFI_OutputSelectedRect_CB ¶
type FPDF_FORMFILLINFO_FFI_OutputSelectedRect_CB struct { }
type FPDF_FORMFILLINFO_FFI_SetCursor_CB ¶
type FPDF_FORMFILLINFO_FFI_SetCursor_CB struct { }
type FPDF_FORMFILLINFO_FFI_SetTextFieldFocus_CB ¶
type FPDF_FORMFILLINFO_FFI_SetTextFieldFocus_CB struct { }
type FPDF_FORMFILLINFO_FFI_SetTimer_CB ¶
type FPDF_FORMFILLINFO_FFI_SetTimer_CB struct { }
type FPDF_FORMFILLINFO_Release_CB ¶
type FPDF_FORMFILLINFO_Release_CB struct { }
type FSDK_SetLocaltimeFunction_CB ¶
type FSDK_SetLocaltimeFunction_CB struct { }
type FSDK_SetTimeFunction_CB ¶
type FSDK_SetTimeFunction_CB struct { }
type FX_DOWNLOADHINTS_ADD_SEGMENT_CB ¶
type FX_DOWNLOADHINTS_ADD_SEGMENT_CB struct { }
type FX_FILEAVAIL_IS_DATA_AVAILABLE_CB ¶
type FX_FILEAVAIL_IS_DATA_AVAILABLE_CB struct { }
type FunctionExporter ¶
type FunctionExporter interface { // ExportFunctions builds functions to export with a wazero.HostModuleBuilder // named "env". ExportFunctions(builder wazero.HostModuleBuilder) }
FunctionExporter configures the functions in the "env" module used by Emscripten.
func NewFunctionExporter ¶
func NewFunctionExporter() FunctionExporter
NewFunctionExporter returns a FunctionExporter object with trace disabled.
type IFSDK_PAUSE_NeedToPauseNow_CB ¶
type IFSDK_PAUSE_NeedToPauseNow_CB struct { }
type UNSUPPORT_INFO_HANDLER_CB ¶
type UNSUPPORT_INFO_HANDLER_CB struct { }
Click to show internal directories.
Click to hide internal directories.