[][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

INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__LONG_DOUBLE_USES_FLOAT128
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__bool_true_false_are_defined
__glibc_c99_flexarr_available
false_
mem_alloc_type_t_Alloc_With_Allocator
mem_alloc_type_t_Alloc_With_Pool
mem_alloc_type_t_Alloc_With_System_Allocator
package_type_t_Package_Type_Unknown
package_type_t_Wasm_Module_AoT
package_type_t_Wasm_Module_Bytecode
true_
wasm_valkind_enum_WASM_ANYREF
wasm_valkind_enum_WASM_F32
wasm_valkind_enum_WASM_F64
wasm_valkind_enum_WASM_FUNCREF
wasm_valkind_enum_WASM_I32
wasm_valkind_enum_WASM_I64

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

WASMFunctionInstanceCommon
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
aot_section_list_t
aot_section_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
mem_alloc_type_t
package_type_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
wasm_exec_env_t
wasm_function_inst_t
wasm_module_inst_t
wasm_module_t
wasm_section_list_t
wasm_valkind_enum
wasm_valkind_t

Unions

MemAllocOption
wasm_val_t__bindgen_ty_1