MCPcopy Create free account
hub / github.com/extism/java-sdk / extism_plugin_new

Method extism_plugin_new

src/main/java/org/extism/sdk/LibExtism.java:122–122  ·  view source on GitHub ↗

Create a new plugin. @param wasm is a WASM module (wat or wasm) or a JSON encoded manifest @param wasmSize the length of the `wasm` parameter @param functions host functions @param nFunctions the number of host functions @param withWASI enables/disables WASI @param er

(byte[] wasm, long wasmSize, Pointer[] functions, int nFunctions, boolean withWASI, Pointer[] errmsg)

Source from the content-addressed store, hash-verified

120 * @return pointer to the plugin, or null in case of error
121 */
122 Pointer extism_plugin_new(byte[] wasm, long wasmSize, Pointer[] functions, int nFunctions, boolean withWASI, Pointer[] errmsg);
123 Pointer extism_plugin_new_with_fuel_limit(byte[] wasm, long wasmSize, Pointer[] functions, int nFunctions, boolean withWASI, long fuelLimit, Pointer[] errmsg);
124
125

Callers 1

PluginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected