7#ifndef WASMTIME_MODULE_H
8#define WASMTIME_MODULE_H
30#ifdef WASMTIME_FEATURE_COMPILER
76#ifdef WASMTIME_FEATURE_COMPILER
91wasmtime_module_validate(
wasm_engine_t *engine,
const uint8_t *wasm,
Definition and accessors of wasmtime_error_t.
void wasmtime_module_image_range(const wasmtime_module_t *module, void **start, void **end)
Returns the range of bytes in memory where this module’s compilation image resides.
void wasmtime_module_imports(const wasmtime_module_t *module, wasm_importtype_vec_t *out)
Same as wasm_module_imports, but for wasmtime_module_t.
wasmtime_error_t * wasmtime_module_deserialize(wasm_engine_t *engine, const uint8_t *bytes, size_t bytes_len, wasmtime_module_t **ret)
Build a module from serialized data.
wasmtime_module_t * wasmtime_module_clone(wasmtime_module_t *m)
Creates a shallow clone of the specified module, increasing the internal reference count.
wasmtime_error_t * wasmtime_module_deserialize_file(wasm_engine_t *engine, const char *path, wasmtime_module_t **ret)
Deserialize a module from an on-disk file.
void wasmtime_module_exports(const wasmtime_module_t *module, wasm_exporttype_vec_t *out)
Same as wasm_module_exports, but for wasmtime_module_t.
void wasmtime_module_delete(wasmtime_module_t *m)
Deletes a module.
A list of bytes.
Definition: wasm.h:102
Compilation environment and configuration.
A list of wasm_exporttype_t values.
Definition: wasm.h:305
A list of wasm_importtype_t values.
Definition: wasm.h:293
Errors generated by Wasmtime.
A compiled Wasmtime module.