[−][src]Crate wamr_sys
Structs
MemAllocOption__bindgen_ty_1 | |
MemAllocOption__bindgen_ty_2 | |
NativeSymbol | |
RuntimeInitArgs | |
WASMExecEnv | |
WASMModuleCommon | |
WASMModuleInstanceCommon | |
__fsid_t | |
wasm_ref_t | |
wasm_section_t | |
wasm_val_t |
Constants
Functions
get_base_lib_export_apis⚠ | Get the exported APIs of base lib |
get_package_type⚠ | Get the package type of a buffer. |
wasm_application_execute_func⚠ | Find the specified function in argv[0] from a WASM module instance and execute that function. |
wasm_application_execute_main⚠ | Find the unique main function from a WASM module instance and execute that function. |
wasm_runtime_addr_app_to_native⚠ | Convert app address(relative address) to native address(absolute address) |
wasm_runtime_addr_native_to_app⚠ | Convert native address(absolute address) to app address(relative address) |
wasm_runtime_call_wasm⚠ | Call the given WASM function of a WASM module instance with arguments (bytecode and AoT). |
wasm_runtime_call_wasm_a⚠ | Call the given WASM function of a WASM module instance with provided results space and arguments (bytecode and AoT). |
wasm_runtime_call_wasm_v⚠ | Call the given WASM function of a WASM module instance with provided results space and variant arguments (bytecode and AoT). |
wasm_runtime_clear_exception⚠ | Clear exception info of the WASM module instance. |
wasm_runtime_create_exec_env⚠ | Create execution environment for a WASM module instance. |
wasm_runtime_deinstantiate⚠ | Deinstantiate a WASM module instance, destroy the resources. |
wasm_runtime_destroy⚠ | Destroy the WASM runtime environment. |
wasm_runtime_destroy_exec_env⚠ | Destroy the execution environment. |
wasm_runtime_dump_mem_consumption⚠ | Dump runtime memory consumption, including: Exec env memory consumption WASM module memory consumption WASM module instance memory consumption stack and app heap used info |
wasm_runtime_free⚠ | |
wasm_runtime_full_init⚠ | Initialize the WASM runtime environment, and also initialize the memory allocator and register native symbols, which are specified with init arguments |
wasm_runtime_get_app_addr_range⚠ | Get the app address range (relative address) that a app address belongs to |
wasm_runtime_get_custom_data⚠ | Get the custom data within a WASM module instance. |
wasm_runtime_get_exception⚠ | Get exception info of the WASM module instance. |
wasm_runtime_get_function_attachment⚠ | Get attachment of native function from execution environment |
wasm_runtime_get_module_inst⚠ | Get WASM module instance from execution environment |
wasm_runtime_get_native_addr_range⚠ | Get the native address range (absolute address) that a native address belongs to |
wasm_runtime_get_user_data⚠ | Get the user data within execution environment. |
wasm_runtime_init⚠ | Initialize the WASM runtime environment, and also initialize the memory allocator with system allocator, which calls os_malloc to allocate memory |
wasm_runtime_instantiate⚠ | Instantiate a WASM module. |
wasm_runtime_is_wasi_mode⚠ | |
wasm_runtime_load⚠ | Load a WASM module from a specified byte buffer. The byte buffer can be WASM binary data when interpreter or JIT is enabled, or AOT binary data when AOT is enabled. If it is AOT binary data, it must be 4-byte aligned. |
wasm_runtime_load_from_sections⚠ | Load a WASM module from a specified WASM or AOT section list. |
wasm_runtime_lookup_function⚠ | Lookup an exported function in the WASM module instance. |
wasm_runtime_lookup_wasi_start_function⚠ | |
wasm_runtime_malloc⚠ | Allocate memory from runtime memory environment. |
wasm_runtime_module_dup_data⚠ | Allocate memory from the heap of WASM module instance and initialize the memory with src |
wasm_runtime_module_free⚠ | Free memory to the heap of WASM module instance |
wasm_runtime_module_malloc⚠ | Allocate memory from the heap of WASM module instance |
wasm_runtime_realloc⚠ | Reallocate memory from runtime memory environment |
wasm_runtime_register_natives⚠ | Register native functions with same module name |
wasm_runtime_register_natives_raw⚠ | Register native functions with same module name, similar to wasm_runtime_register_natives, the difference is that runtime passes raw arguments to native API, which means that the native API should be defined as: void foo(wasm_exec_env_t exec_env, uint64 *args); and native API should extract arguments one by one from args array with macro native_raw_get_arg and write the return value back to args[0] with macro native_raw_return_type and native_raw_set_return |
wasm_runtime_set_custom_data⚠ | Set custom data to WASM module instance. |
wasm_runtime_set_exception⚠ | Set exception info of the WASM module instance. |
wasm_runtime_set_user_data⚠ | Set user data to execution environment. |
wasm_runtime_set_wasi_args⚠ | |
wasm_runtime_unload⚠ | Unload a WASM module. |
wasm_runtime_validate_app_addr⚠ | Validate the app address, check whether it belongs to WASM module instance's address space, or in its heap space or memory space. |
wasm_runtime_validate_app_str_addr⚠ | Similar to wasm_runtime_validate_app_addr(), except that the size parameter is not provided. This function validates the app string address, check whether it belongs to WASM module instance's address space, or in its heap space or memory space. Moreover, it checks whether it is the offset of a string that is end with '\0'. @param module_inst the WASM module instance @param app_str_offset the app address of the string to validate, which is a relative address |
wasm_runtime_validate_native_addr⚠ | Validate the native address, check whether it belongs to WASM module instance's address space, or in its heap space or memory space. |
Type Definitions
Unions
MemAllocOption | |
wasm_val_t__bindgen_ty_1 |