Interface Plugin

Hierarchy

  • Plugin

Methods

  • Call a specific function from the WebAssembly module with provided input.

    Parameters

    • funcName: string | [string, string]

      The name of the function to call

    • Optional input: string | number | Uint8Array

      The input to pass to the function

    Returns Promise<null | PluginOutput>

    The result from the function call

  • Check if a function exists in the WebAssembly module.

    Parameters

    • funcName: string | [string, string]

      The function's name, or a tuple of target module name and function name.

    Returns Promise<boolean>

    true if the function exists, otherwise false

  • Parameters

    • Optional name: string

    Returns Promise<ModuleExportDescriptor[]>

  • Parameters

    • Optional name: string

    Returns Promise<ModuleImportDescriptor[]>

  • Parameters

    • Optional name: string

    Returns Promise<Instance>

  • Whether the plugin is currently processing a call.

    Returns boolean

  • Reset Plugin memory. If called while the plugin is actively executing, memory will not be reset.

    Returns Promise<boolean>

    Whether or not the reset was successful.

Generated using TypeDoc