Skip to main content

Module ffi

Module ffi 

Source
Expand description

Foreign function interfaces generated from WasmEdge C-API.

Structs§

WasmEdge_ASTModuleContext
WasmEdge_Async
WasmEdge_Bytes
WasmEdge bytes struct.
WasmEdge_CallingFrameContext
WasmEdge_CompilerContext
WasmEdge_ConfigureContext
WasmEdge_ExecutorContext
WasmEdge_ExportTypeContext
WasmEdge_FunctionInstanceContext
WasmEdge_FunctionTypeContext
WasmEdge_GlobalInstanceContext
WasmEdge_GlobalTypeContext
WasmEdge_ImportTypeContext
WasmEdge_LimitContext
WasmEdge_LoaderContext
WasmEdge_LogMessage
WasmEdge_MemoryInstanceContext
WasmEdge_MemoryTypeContext
WasmEdge_ModuleDescriptor
Module descriptor for plugins.
WasmEdge_ModuleInstanceContext
WasmEdge_PluginContext
WasmEdge_PluginDescriptor
Plugin descriptor for plugins.
WasmEdge_PluginVersionData
Version data for plugins.
WasmEdge_ProgramOption
Program option for plugins.
WasmEdge_Result
WasmEdge result struct.
WasmEdge_StatisticsContext
WasmEdge_StoreContext
WasmEdge_String
WasmEdge string struct.
WasmEdge_TableInstanceContext
WasmEdge_TableTypeContext
WasmEdge_TagInstanceContext
WasmEdge_TagTypeContext
WasmEdge_VMContext
WasmEdge_ValType
WasmEdge WASM value type struct.
WasmEdge_ValidatorContext
WasmEdge_Value
WasmEdge WASM value struct.

Constants§

WasmEdge_CompilerOptimizationLevel_O0
WasmEdge_CompilerOptimizationLevel_O1
WasmEdge_CompilerOptimizationLevel_O2
WasmEdge_CompilerOptimizationLevel_O3
WasmEdge_CompilerOptimizationLevel_Os
WasmEdge_CompilerOptimizationLevel_Oz
WasmEdge_CompilerOutputFormat_Native
WasmEdge_CompilerOutputFormat_Wasm
WasmEdge_ComponentTypeCode_Bool
WasmEdge_ComponentTypeCode_Borrow
WasmEdge_ComponentTypeCode_Char
WasmEdge_ComponentTypeCode_Enum
WasmEdge_ComponentTypeCode_ErrContext
WasmEdge_ComponentTypeCode_F32
WasmEdge_ComponentTypeCode_F64
WasmEdge_ComponentTypeCode_Flags
WasmEdge_ComponentTypeCode_Future
WasmEdge_ComponentTypeCode_List
WasmEdge_ComponentTypeCode_ListLen
WasmEdge_ComponentTypeCode_Option
WasmEdge_ComponentTypeCode_Own
WasmEdge_ComponentTypeCode_Record
WasmEdge_ComponentTypeCode_Result
WasmEdge_ComponentTypeCode_S8
WasmEdge_ComponentTypeCode_S16
WasmEdge_ComponentTypeCode_S32
WasmEdge_ComponentTypeCode_S64
WasmEdge_ComponentTypeCode_Stream
WasmEdge_ComponentTypeCode_String
WasmEdge_ComponentTypeCode_Tuple
WasmEdge_ComponentTypeCode_TypeIndex
WasmEdge_ComponentTypeCode_U8
WasmEdge_ComponentTypeCode_U16
WasmEdge_ComponentTypeCode_U32
WasmEdge_ComponentTypeCode_U64
WasmEdge_ComponentTypeCode_Variant
WasmEdge_ErrCategory_UserLevelError
WasmEdge_ErrCategory_WASM
WasmEdge_ErrCode_AOTDisabled
WasmEdge_ErrCode_AOTNotImpl
WasmEdge_ErrCode_AccessNullArray
WasmEdge_ErrCode_AccessNullException
WasmEdge_ErrCode_AccessNullFunc
WasmEdge_ErrCode_AccessNullI31
WasmEdge_ErrCode_AccessNullStruct
WasmEdge_ErrCode_AlignmentTooLarge
WasmEdge_ErrCode_ArgTypeMismatch
WasmEdge_ErrCode_ArrayOutOfBounds
WasmEdge_ErrCode_ArrayTypesMismatch
WasmEdge_ErrCode_ArrayTypesNumtypeRequired
WasmEdge_ErrCode_CannotHaveMoreThan32Flags
WasmEdge_ErrCode_CastFailed
WasmEdge_ErrCode_CastNullToNonNull
WasmEdge_ErrCode_ComponentDuplicateName
WasmEdge_ErrCode_ComponentInvalidName
WasmEdge_ErrCode_ComponentNotImplInstantiate
WasmEdge_ErrCode_ComponentNotImplLoader
WasmEdge_ErrCode_ComponentNotImplValidator
WasmEdge_ErrCode_ConstExprRequired
WasmEdge_ErrCode_CoreInvalidExport
WasmEdge_ErrCode_CostLimitExceeded
WasmEdge_ErrCode_DataCountRequired
WasmEdge_ErrCode_DataSegDoesNotFit
WasmEdge_ErrCode_DefTypeIndexOutOfBounds
WasmEdge_ErrCode_DivideByZero
WasmEdge_ErrCode_DupExportName
WasmEdge_ErrCode_ENDCodeExpected
WasmEdge_ErrCode_ElemSegDoesNotFit
WasmEdge_ErrCode_EnumTagNameConflicts
WasmEdge_ErrCode_ExpectSharedMemory
WasmEdge_ErrCode_ExpectedZeroByte
WasmEdge_ErrCode_ExportAscriptionIncompatible
WasmEdge_ErrCode_ExportNotFound
WasmEdge_ErrCode_FlagNameConflicts
WasmEdge_ErrCode_FuncNotFound
WasmEdge_ErrCode_FuncSigMismatch
WasmEdge_ErrCode_HostFuncError
WasmEdge_ErrCode_IllegalGrammar
WasmEdge_ErrCode_IllegalOpCode
WasmEdge_ErrCode_IllegalPath
WasmEdge_ErrCode_ImmutableArray
WasmEdge_ErrCode_ImmutableField
WasmEdge_ErrCode_ImmutableGlobal
WasmEdge_ErrCode_IncompatibleDataCount
WasmEdge_ErrCode_IncompatibleFuncCode
WasmEdge_ErrCode_IncompatibleImportType
WasmEdge_ErrCode_IndirectCallTypeMismatch
WasmEdge_ErrCode_InstanceMissingExpectedExport
WasmEdge_ErrCode_InstrTypeMismatch
WasmEdge_ErrCode_IntegerOverflow
WasmEdge_ErrCode_IntegerTooLarge
WasmEdge_ErrCode_IntegerTooLong
WasmEdge_ErrCode_Interrupted
WasmEdge_ErrCode_IntrinsicsTableNotFound
WasmEdge_ErrCode_InvalidAOTConfigure
WasmEdge_ErrCode_InvalidAlignment
WasmEdge_ErrCode_InvalidBrRefType
WasmEdge_ErrCode_InvalidCanonOption
WasmEdge_ErrCode_InvalidConvToInt
WasmEdge_ErrCode_InvalidCoreSort
WasmEdge_ErrCode_InvalidDataIdx
WasmEdge_ErrCode_InvalidElemIdx
WasmEdge_ErrCode_InvalidExportName
WasmEdge_ErrCode_InvalidExternName
WasmEdge_ErrCode_InvalidFieldIdx
WasmEdge_ErrCode_InvalidFuncIdx
WasmEdge_ErrCode_InvalidFuncTypeIdx
WasmEdge_ErrCode_InvalidGlobalIdx
WasmEdge_ErrCode_InvalidIndex
WasmEdge_ErrCode_InvalidLabelIdx
WasmEdge_ErrCode_InvalidLaneIdx
WasmEdge_ErrCode_InvalidLimit
WasmEdge_ErrCode_InvalidLocalIdx
WasmEdge_ErrCode_InvalidMemPages
WasmEdge_ErrCode_InvalidMemPages64
WasmEdge_ErrCode_InvalidMemoryIdx
WasmEdge_ErrCode_InvalidMut
WasmEdge_ErrCode_InvalidNotDefaultableArray
WasmEdge_ErrCode_InvalidNotDefaultableField
WasmEdge_ErrCode_InvalidOffset
WasmEdge_ErrCode_InvalidPackedArray
WasmEdge_ErrCode_InvalidPackedField
WasmEdge_ErrCode_InvalidRefIdx
WasmEdge_ErrCode_InvalidResultArity
WasmEdge_ErrCode_InvalidStartFunc
WasmEdge_ErrCode_InvalidSubType
WasmEdge_ErrCode_InvalidTableIdx
WasmEdge_ErrCode_InvalidTableSize64
WasmEdge_ErrCode_InvalidTagIdx
WasmEdge_ErrCode_InvalidTagResultType
WasmEdge_ErrCode_InvalidTypeReference
WasmEdge_ErrCode_InvalidUninitLocal
WasmEdge_ErrCode_InvalidUnpackedArray
WasmEdge_ErrCode_InvalidUnpackedField
WasmEdge_ErrCode_JunkSection
WasmEdge_ErrCode_LengthOutOfBounds
WasmEdge_ErrCode_MalformedAliasTarget
WasmEdge_ErrCode_MalformedCanonical
WasmEdge_ErrCode_MalformedCatchFlags
WasmEdge_ErrCode_MalformedCoreInstance
WasmEdge_ErrCode_MalformedDefType
WasmEdge_ErrCode_MalformedElemType
WasmEdge_ErrCode_MalformedExportKind
WasmEdge_ErrCode_MalformedFlagsType
WasmEdge_ErrCode_MalformedImportKind
WasmEdge_ErrCode_MalformedInstance
WasmEdge_ErrCode_MalformedLimitFlags
WasmEdge_ErrCode_MalformedMagic
WasmEdge_ErrCode_MalformedMemoryOpFlags
WasmEdge_ErrCode_MalformedModuleType
WasmEdge_ErrCode_MalformedName
WasmEdge_ErrCode_MalformedRecordType
WasmEdge_ErrCode_MalformedRefType
WasmEdge_ErrCode_MalformedSection
WasmEdge_ErrCode_MalformedSort
WasmEdge_ErrCode_MalformedTable
WasmEdge_ErrCode_MalformedTupleType
WasmEdge_ErrCode_MalformedUTF8
WasmEdge_ErrCode_MalformedValType
WasmEdge_ErrCode_MalformedVariantType
WasmEdge_ErrCode_MalformedVersion
WasmEdge_ErrCode_MemoryOutOfBounds
WasmEdge_ErrCode_MissingArgument
WasmEdge_ErrCode_ModuleNameConflict
WasmEdge_ErrCode_MultiMemories
WasmEdge_ErrCode_MultiTables
WasmEdge_ErrCode_NameCannotBeEmpty
WasmEdge_ErrCode_NonNullRequired
WasmEdge_ErrCode_NotADefinedType
WasmEdge_ErrCode_NotValidated
WasmEdge_ErrCode_ReadError
WasmEdge_ErrCode_RecordFieldNameConflicts
WasmEdge_ErrCode_RefTypeMismatch
WasmEdge_ErrCode_ResourceDropArgument
WasmEdge_ErrCode_RuntimeError
WasmEdge_ErrCode_SectionSizeMismatch
WasmEdge_ErrCode_SetValueErrorType
WasmEdge_ErrCode_SetValueToConst
WasmEdge_ErrCode_SharedMemoryNoMax
WasmEdge_ErrCode_Success
WasmEdge_ErrCode_TableOutOfBounds
WasmEdge_ErrCode_Terminated
WasmEdge_ErrCode_TooManyLocals
WasmEdge_ErrCode_TypeCheckFailed
WasmEdge_ErrCode_UnalignedAtomicAccess
WasmEdge_ErrCode_UncaughtException
WasmEdge_ErrCode_UndefinedElement
WasmEdge_ErrCode_UnexpectedEnd
WasmEdge_ErrCode_UninitializedElement
WasmEdge_ErrCode_UnknownCanonicalOption
WasmEdge_ErrCode_UnknownImport
WasmEdge_ErrCode_Unreachable
WasmEdge_ErrCode_UserDefError
WasmEdge_ErrCode_VariantCaseNameConflicts
WasmEdge_ErrCode_VariantMustHaveCase
WasmEdge_ErrCode_WrongInstanceAddress
WasmEdge_ErrCode_WrongInstanceIndex
WasmEdge_ErrCode_WrongVMWorkflow
WasmEdge_ExternalType_Function
WasmEdge_ExternalType_Global
WasmEdge_ExternalType_Memory
WasmEdge_ExternalType_Table
WasmEdge_ExternalType_Tag
WasmEdge_HostRegistration_Wasi
WasmEdge_LogLevel_Critical
WasmEdge_LogLevel_Debug
WasmEdge_LogLevel_Error
WasmEdge_LogLevel_Info
WasmEdge_LogLevel_Trace
WasmEdge_LogLevel_Warn
WasmEdge_Mutability_Const
WasmEdge_Mutability_Var
WasmEdge_Plugin_CurrentAPIVersion
WasmEdge_ProgramOptionType_Double
Boolean value.
WasmEdge_ProgramOptionType_Float
Boolean value.
WasmEdge_ProgramOptionType_Int8
Boolean value.
WasmEdge_ProgramOptionType_Int16
Boolean value.
WasmEdge_ProgramOptionType_Int32
Boolean value.
WasmEdge_ProgramOptionType_Int64
Boolean value.
WasmEdge_ProgramOptionType_None
No option value.
WasmEdge_ProgramOptionType_String
WasmEdge_String.
WasmEdge_ProgramOptionType_Toggle
Boolean value.
WasmEdge_ProgramOptionType_UInt8
Boolean value.
WasmEdge_ProgramOptionType_UInt16
Boolean value.
WasmEdge_ProgramOptionType_UInt32
Boolean value.
WasmEdge_ProgramOptionType_UInt64
Boolean value.
WasmEdge_Proposal_Annotations
WasmEdge_Proposal_BulkMemoryOperations
WasmEdge_Proposal_Component
WasmEdge_Proposal_ExceptionHandling
WasmEdge_Proposal_ExtendedConst
WasmEdge_Proposal_FunctionReferences
WasmEdge_Proposal_GC
WasmEdge_Proposal_ImportExportMutGlobals
WasmEdge_Proposal_Memory64
WasmEdge_Proposal_MultiMemories
WasmEdge_Proposal_MultiValue
WasmEdge_Proposal_NonTrapFloatToIntConversions
WasmEdge_Proposal_ReferenceTypes
WasmEdge_Proposal_RelaxSIMD
WasmEdge_Proposal_SIMD
WasmEdge_Proposal_SignExtensionOperators
WasmEdge_Proposal_TailCall
WasmEdge_Proposal_Threads
WasmEdge_RunMode_AOT
WasmEdge_RunMode_Interpreter
WasmEdge_RunMode_JIT
WasmEdge_Standard_WASM_1
WasmEdge_Standard_WASM_2
WasmEdge_Standard_WASM_3
WasmEdge_TypeCode_AnyRef
WasmEdge_TypeCode_Array
WasmEdge_TypeCode_ArrayRef
WasmEdge_TypeCode_Epsilon
WasmEdge_TypeCode_EqRef
WasmEdge_TypeCode_ExnRef
WasmEdge_TypeCode_ExternRef
WasmEdge_TypeCode_F32
WasmEdge_TypeCode_F64
WasmEdge_TypeCode_Func
WasmEdge_TypeCode_FuncRef
WasmEdge_TypeCode_I8
WasmEdge_TypeCode_I16
WasmEdge_TypeCode_I32
WasmEdge_TypeCode_I64
WasmEdge_TypeCode_I31Ref
WasmEdge_TypeCode_NullExnRef
WasmEdge_TypeCode_NullExternRef
WasmEdge_TypeCode_NullFuncRef
WasmEdge_TypeCode_NullRef
WasmEdge_TypeCode_Rec
WasmEdge_TypeCode_Ref
WasmEdge_TypeCode_RefNull
WasmEdge_TypeCode_Struct
WasmEdge_TypeCode_StructRef
WasmEdge_TypeCode_Sub
WasmEdge_TypeCode_SubFinal
WasmEdge_TypeCode_TypeIndex
WasmEdge_TypeCode_V128

Functions§

WasmEdge_ASTModuleDelete⚠
Deletion of the WasmEdge_ASTModuleContext.
WasmEdge_ASTModuleListExports⚠
List the exports of the AST module.
WasmEdge_ASTModuleListExportsLength⚠
Get the length of exports list of the AST module.
WasmEdge_ASTModuleListImports⚠
List the imports of the AST module.
WasmEdge_ASTModuleListImportsLength⚠
Get the length of imports list of the AST module.
WasmEdge_AsyncCancel⚠
Cancel a WasmEdge_Async execution.
WasmEdge_AsyncDelete⚠
Deletion of the WasmEdge_Async.
WasmEdge_AsyncGet⚠
Wait and get the result of WasmEdge_Async execution.
WasmEdge_AsyncGetReturnsLength⚠
Wait and get the return list length of the WasmEdge_Async execution.
WasmEdge_AsyncWait⚠
Wait for a WasmEdge_Async execution.
WasmEdge_AsyncWaitFor⚠
Wait for a WasmEdge_Async execution with timeout.
WasmEdge_BytesCreate⚠
Creation of the WasmEdge_Bytes with the buffer and its length.
WasmEdge_BytesDelete⚠
Deletion of the WasmEdge_Bytes.
WasmEdge_BytesWrap⚠
Create a WasmEdge_Bytes that wraps the buffer.
WasmEdge_CallingFrameGetExecutor⚠
Get the executor context from the current calling frame.
WasmEdge_CallingFrameGetMemoryInstance⚠
Get the memory instance by index from the module instance of the current calling frame.
WasmEdge_CallingFrameGetModuleInstance⚠
Get the module instance of the current calling frame.
WasmEdge_CompilerCompile⚠
Compile the input WASM from the file path.
WasmEdge_CompilerCompileFromBuffer⚠
Compile the input WASM from the given buffer.
WasmEdge_CompilerCompileFromBytes⚠
Compile the input WASM from a WasmEdge_Bytes.
WasmEdge_CompilerCreate⚠
Creation of the WasmEdge_CompilerContext.
WasmEdge_CompilerDelete⚠
Deletion of the WasmEdge_CompilerContext.
WasmEdge_ConfigureAddHostRegistration⚠
Add a built-in host registration setting to the WasmEdge_ConfigureContext.
WasmEdge_ConfigureAddProposal⚠
Add a proposal setting to the WasmEdge_ConfigureContext.
WasmEdge_ConfigureCompilerGetOptimizationLevel⚠
Get the optimization level of the AOT compiler.
WasmEdge_ConfigureCompilerGetOutputFormat⚠
Get the output binary format of the AOT compiler.
WasmEdge_ConfigureCompilerIsDumpIR⚠
Get the dump IR option of the AOT compiler.
WasmEdge_ConfigureCompilerIsGenericBinary⚠
Get the generic binary option of the AOT compiler.
WasmEdge_ConfigureCompilerIsInterruptible⚠
Get the interruptible option of the AOT compiler.
WasmEdge_ConfigureCompilerSetDumpIR⚠
Set the dump IR option of the AOT compiler.
WasmEdge_ConfigureCompilerSetGenericBinary⚠
Set the generic binary option of the AOT compiler.
WasmEdge_ConfigureCompilerSetInterruptible⚠
Set the interruptible option of the AOT compiler.
WasmEdge_ConfigureCompilerSetOptimizationLevel⚠
Set the optimization level of the AOT compiler.
WasmEdge_ConfigureCompilerSetOutputFormat⚠
Set the output binary format of the AOT compiler.
WasmEdge_ConfigureCreate⚠
Creation of the WasmEdge_ConfigureContext.
WasmEdge_ConfigureDelete⚠
Deletion of the WasmEdge_ConfigureContext.
WasmEdge_ConfigureGetMaxMemoryPage⚠
Get the setting of the page limit of memory instances.
WasmEdge_ConfigureGetRunMode⚠
Get the run mode setting.
WasmEdge_ConfigureHasHostRegistration⚠
Check if a built-in host registration setting exists in the WasmEdge_ConfigureContext or not.
WasmEdge_ConfigureHasProposal⚠
Check if a proposal setting exists in the WasmEdge_ConfigureContext or not.
WasmEdge_ConfigureIsAllowAFUNIX⚠
Get the AllowAFUNIX option.
WasmEdge_ConfigureIsForceInterpreter⚠
Get the force interpreter mode execution option.
WasmEdge_ConfigureRemoveHostRegistration⚠
Remove a built-in host registration setting in the WasmEdge_ConfigureContext.
WasmEdge_ConfigureRemoveProposal⚠
Remove a proposal setting in the WasmEdge_ConfigureContext.
WasmEdge_ConfigureSetAllowAFUNIX⚠
Set the option of enabling/disabling AF_UNIX support in the WASI socket.
WasmEdge_ConfigureSetForceInterpreter⚠
Set the force interpreter mode execution option.
WasmEdge_ConfigureSetMaxMemoryPage⚠
Set the page limit of memory instances.
WasmEdge_ConfigureSetRunMode⚠
Set the run mode for module execution.
WasmEdge_ConfigureSetWASMStandard⚠
Set the WASM standard in the WasmEdge_ConfigureContext.
WasmEdge_ConfigureStatisticsIsCostMeasuring⚠
Get the cost measuring option for the statistics.
WasmEdge_ConfigureStatisticsIsInstructionCounting⚠
Get the instruction counting option for the statistics.
WasmEdge_ConfigureStatisticsIsTimeMeasuring⚠
Get the time measuring option for the statistics.
WasmEdge_ConfigureStatisticsSetCostMeasuring⚠
Set the cost measuring option for the statistics.
WasmEdge_ConfigureStatisticsSetInstructionCounting⚠
Set the instruction counting option for the statistics.
WasmEdge_ConfigureStatisticsSetTimeMeasuring⚠
Set the time measuring option for the statistics.
WasmEdge_Driver_Compiler⚠
Entry point for the compiler tool.
WasmEdge_Driver_Tool⚠
Entry point for the runtime tool.
WasmEdge_Driver_UniTool⚠
Entry point for the unified tool.
WasmEdge_ExecutorAsyncInvoke⚠
Asynchronously invoke a WASM function by the function instance.
WasmEdge_ExecutorCreate⚠
Creation of the WasmEdge_ExecutorContext.
WasmEdge_ExecutorDelete⚠
Deletion of the WasmEdge_ExecutorContext.
WasmEdge_ExecutorExperimentalRegisterPostHostFunction⚠
Register a host function that will be invoked after executing any host functions.
WasmEdge_ExecutorExperimentalRegisterPreHostFunction⚠
Register a host function that will be invoked before executing any host functions.
WasmEdge_ExecutorInstantiate⚠
Instantiate an AST Module into a module instance.
WasmEdge_ExecutorInvoke⚠
Invoke a WASM function by the function instance.
WasmEdge_ExecutorRegister⚠
Instantiate an AST Module as a named module instance and link it to the store.
WasmEdge_ExecutorRegisterImport⚠
Register a module instance in a store by exporting its module name.
WasmEdge_ExecutorRegisterImportWithAlias⚠
Register a module instance into a store under the given alias name.
WasmEdge_ExportTypeGetExternalName⚠
Get the external name from an export type.
WasmEdge_ExportTypeGetExternalType⚠
Get the external type from an export type.
WasmEdge_ExportTypeGetFunctionType⚠
Get the external value (which is a function type) from an export type.
WasmEdge_ExportTypeGetGlobalType⚠
Get the external value (which is a global type) from an export type.
WasmEdge_ExportTypeGetMemoryType⚠
Get the external value (which is a memory type) from an export type.
WasmEdge_ExportTypeGetTableType⚠
Get the external value (which is a table type) from an export type.
WasmEdge_ExportTypeGetTagType⚠
Get the external value (which is a tag type) from an export type.
WasmEdge_FunctionInstanceCreate⚠
Creation of the WasmEdge_FunctionInstanceContext for host functions.
WasmEdge_FunctionInstanceCreateBinding⚠
Creation of the WasmEdge_FunctionInstanceContext for host functions.
WasmEdge_FunctionInstanceDelete⚠
Deletion of the WasmEdge_FunctionInstanceContext.
WasmEdge_FunctionInstanceGetData⚠
Get the function data field of the function instance.
WasmEdge_FunctionInstanceGetFunctionType⚠
Get the function type context of the function instance.
WasmEdge_FunctionTypeCreate⚠
Creation of the WasmEdge_FunctionTypeContext.
WasmEdge_FunctionTypeDelete⚠
Deletion of the WasmEdge_FunctionTypeContext.
WasmEdge_FunctionTypeGetParameters⚠
Get the parameter types list from the WasmEdge_FunctionTypeContext.
WasmEdge_FunctionTypeGetParametersLength⚠
Get the parameter types list length from the WasmEdge_FunctionTypeContext.
WasmEdge_FunctionTypeGetReturns⚠
Get the return types list from the WasmEdge_FunctionTypeContext.
WasmEdge_FunctionTypeGetReturnsLength⚠
Get the return types list length from the WasmEdge_FunctionTypeContext.
WasmEdge_GlobalInstanceCreate⚠
Creation of the WasmEdge_GlobalInstanceContext.
WasmEdge_GlobalInstanceDelete⚠
Deletion of the WasmEdge_GlobalInstanceContext.
WasmEdge_GlobalInstanceGetGlobalType⚠
Get the global type context from a global instance.
WasmEdge_GlobalInstanceGetValue⚠
Get the value from a global instance.
WasmEdge_GlobalInstanceSetValue⚠
Set the value in a global instance.
WasmEdge_GlobalTypeCreate⚠
Creation of the WasmEdge_GlobalTypeContext.
WasmEdge_GlobalTypeDelete⚠
Deletion of the WasmEdge_GlobalTypeContext.
WasmEdge_GlobalTypeGetMutability⚠
Get the mutability from a global type.
WasmEdge_GlobalTypeGetValType⚠
Get the value type from a global type.
WasmEdge_ImportTypeGetExternalName⚠
Get the external name from an import type.
WasmEdge_ImportTypeGetExternalType⚠
Get the external type from an import type.
WasmEdge_ImportTypeGetFunctionType⚠
Get the external value (which is a function type) from an import type.
WasmEdge_ImportTypeGetGlobalType⚠
Get the external value (which is a global type) from an import type.
WasmEdge_ImportTypeGetMemoryType⚠
Get the external value (which is a memory type) from an import type.
WasmEdge_ImportTypeGetModuleName⚠
Get the module name from an import type.
WasmEdge_ImportTypeGetTableType⚠
Get the external value (which is a table type) from an import type.
WasmEdge_ImportTypeGetTagType⚠
Get the external value (which is a tag type) from an import type.
WasmEdge_LimitCreate⚠
Creation of the WasmEdge_LimitContext without max value.
WasmEdge_LimitCreateWithMax⚠
Creation of the WasmEdge_LimitContext with max value.
WasmEdge_LimitDelete⚠
Deletion of the WasmEdge_LimitContext.
WasmEdge_LimitGetMax⚠
Get the maximum value from the WasmEdge_LimitContext.
WasmEdge_LimitGetMin⚠
Get the minimum value from the WasmEdge_LimitContext.
WasmEdge_LimitHasMax⚠
Get the has-maximum option from the WasmEdge_LimitContext.
WasmEdge_LimitIs64Bit⚠
Get the 64-bit address type option from the WasmEdge_LimitContext.
WasmEdge_LimitIsEqual⚠
Compare the two WasmEdge_LimitContext objects.
WasmEdge_LimitIsShared⚠
Get the shareable option from the WasmEdge_LimitContext.
WasmEdge_LoaderCreate⚠
Creation of the WasmEdge_LoaderContext.
WasmEdge_LoaderDelete⚠
Deletion of the WasmEdge_LoaderContext.
WasmEdge_LoaderParseFromBuffer⚠
Load and parse the WASM module from a buffer into WasmEdge_ASTModuleContext.
WasmEdge_LoaderParseFromBytes⚠
Load and parse the WASM module from a WasmEdge_Bytes into WasmEdge_ASTModuleContext.
WasmEdge_LoaderParseFromFile⚠
Load and parse the WASM module from a WASM file into a WasmEdge_ASTModuleContext.
WasmEdge_LoaderSerializeASTModule⚠
Serialize the WasmEdge_ASTModuleContext into WASM binary.
WasmEdge_LogOff⚠
Set the logging system off.
WasmEdge_LogSetCallback⚠
WasmEdge_LogSetDebugLevel⚠
Set the logging system to filter to debug level.
WasmEdge_LogSetErrorLevel⚠
Set the logging system to filter to error level.
WasmEdge_LogSetLevel⚠
WasmEdge_MemoryInstanceCreate⚠
Creation of the WasmEdge_MemoryInstanceContext.
WasmEdge_MemoryInstanceDelete⚠
Deletion of the WasmEdge_MemoryInstanceContext.
WasmEdge_MemoryInstanceGetData⚠
Copy the data to the output buffer from a memory instance.
WasmEdge_MemoryInstanceGetMemoryType⚠
Get the memory type context from a memory instance.
WasmEdge_MemoryInstanceGetPageSize⚠
Get the current page size (64 KiB of each page) of a memory instance.
WasmEdge_MemoryInstanceGetPointer⚠
Get the data pointer in a memory instance.
WasmEdge_MemoryInstanceGetPointerConst⚠
Get the const data pointer in a const memory instance.
WasmEdge_MemoryInstanceGrowPage⚠
Grow a memory instance with a page size.
WasmEdge_MemoryInstanceSetData⚠
Copy the data into a memory instance from the input buffer.
WasmEdge_MemoryTypeCreate⚠
Creation of the WasmEdge_MemoryTypeContext.
WasmEdge_MemoryTypeDelete⚠
Deletion of the WasmEdge_MemoryTypeContext.
WasmEdge_MemoryTypeGetLimit⚠
Get the limit context from a memory type.
WasmEdge_ModuleInstanceAddFunction⚠
Add a function instance context to a WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceAddGlobal⚠
Add a global instance context to a WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceAddMemory⚠
Add a memory instance context to a WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceAddTable⚠
Add a table instance context to a WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceCreate⚠
Creation of the WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceCreateWASI⚠
Creation of the WasmEdge_ModuleInstanceContext for the WASI specification.
WasmEdge_ModuleInstanceCreateWASIWithFds⚠
Same as WasmEdge_ModuleInstanceCreateWASI but with extended support for File Descriptors
WasmEdge_ModuleInstanceCreateWithData⚠
Creation of the WasmEdge_ModuleInstanceContext with host data.
WasmEdge_ModuleInstanceDelete⚠
Deletion of the WasmEdge_ModuleInstanceContext.
WasmEdge_ModuleInstanceFindFunction⚠
Get the exported function instance context of a module instance.
WasmEdge_ModuleInstanceFindGlobal⚠
Get the exported global instance context of a module instance.
WasmEdge_ModuleInstanceFindMemory⚠
Get the exported memory instance context of a module instance.
WasmEdge_ModuleInstanceFindTable⚠
Get the exported table instance context of a module instance.
WasmEdge_ModuleInstanceFindTag⚠
Get the exported tag instance context of a module instance.
WasmEdge_ModuleInstanceGetHostData⚠
Get the host data set for the module instance during creation.
WasmEdge_ModuleInstanceGetModuleName⚠
Get the export module name of a module instance.
WasmEdge_ModuleInstanceInitWASI⚠
Initialize the WasmEdge_ModuleInstanceContext for the WASI specification.
WasmEdge_ModuleInstanceInitWASIWithFds⚠
Same as WasmEdge_ModuleInstanceInitWASI but with extended support for File Descriptors
WasmEdge_ModuleInstanceInitWasmEdgeProcess⚠
Initialize the WasmEdge_ModuleInstanceContext for the wasmedge_process specification.
WasmEdge_ModuleInstanceListFunction⚠
List the exported function names of a module instance.
WasmEdge_ModuleInstanceListFunctionLength⚠
Get the length of exported function list of a module instance.
WasmEdge_ModuleInstanceListGlobal⚠
List the exported global names of a module instance.
WasmEdge_ModuleInstanceListGlobalLength⚠
Get the length of exported global list of a module instance.
WasmEdge_ModuleInstanceListMemory⚠
List the exported memory names of a module instance.
WasmEdge_ModuleInstanceListMemoryLength⚠
Get the length of exported memory list of a module instance.
WasmEdge_ModuleInstanceListTable⚠
List the exported table names of a module instance.
WasmEdge_ModuleInstanceListTableLength⚠
Get the length of exported table list of a module instance.
WasmEdge_ModuleInstanceListTag⚠
List the exported tag names of a module instance.
WasmEdge_ModuleInstanceListTagLength⚠
Get the length of exported tag list of a module instance.
WasmEdge_ModuleInstanceWASIGetExitCode⚠
Get the WASI exit code.
WasmEdge_ModuleInstanceWASIGetNativeHandler⚠
Get the native handler from the WASI mapped FD/Handler.
WasmEdge_PluginCreateModule⚠
Create the module instance in the plug-in by the module name.
WasmEdge_PluginFind⚠
Find the loaded plug-in context by name.
WasmEdge_PluginGetPluginName⚠
Get the plug-in name of the plug-in context.
WasmEdge_PluginInitWASINN⚠
Initialize the wasi_nn plug-in.
WasmEdge_PluginListModule⚠
List the modules in the plug-in context with their names.
WasmEdge_PluginListModuleLength⚠
Get the length of module list in the plug-in context.
WasmEdge_PluginListPlugins⚠
List the loaded plug-ins with their names.
WasmEdge_PluginListPluginsLength⚠
Get the length of loaded plug-in list.
WasmEdge_PluginLoadFromPath⚠
Load the plugin with the given file or directory.
WasmEdge_PluginLoadWithDefaultPaths⚠
Load plugins with the default search paths.
WasmEdge_Plugin_GetDescriptor⚠
Implemented by plugins to return the plugin descriptor.
WasmEdge_ResultGen⚠
Generate the result with code.
WasmEdge_ResultGetCategory⚠
Get the error category.
WasmEdge_ResultGetCode⚠
Get the result code.
WasmEdge_ResultGetMessage⚠
Get the result message.
WasmEdge_ResultOK⚠
Check whether the result is a success.
WasmEdge_StatisticsClear⚠
Clear all data in the WasmEdge_StatisticsContext.
WasmEdge_StatisticsCreate⚠
Creation of the WasmEdge_StatisticsContext.
WasmEdge_StatisticsDelete⚠
Deletion of the WasmEdge_StatisticsContext.
WasmEdge_StatisticsGetInstrCount⚠
Get the instruction count in execution.
WasmEdge_StatisticsGetInstrPerSecond⚠
Get the instruction count per second in execution.
WasmEdge_StatisticsGetTotalCost⚠
Get the total cost in execution.
WasmEdge_StatisticsSetCostLimit⚠
Set the cost limit in execution.
WasmEdge_StatisticsSetCostTable⚠
Set the costs of instructions.
WasmEdge_StoreCreate⚠
Creation of the WasmEdge_StoreContext.
WasmEdge_StoreDelete⚠
Deletion of the WasmEdge_StoreContext.
WasmEdge_StoreFindModule⚠
Get the module instance context by the module name.
WasmEdge_StoreListModule⚠
List the registered module names.
WasmEdge_StoreListModuleLength⚠
Get the length of registered module list in store.
WasmEdge_StringCopy⚠
Copy the content of WasmEdge_String object to the buffer.
WasmEdge_StringCreateByBuffer⚠
Creation of the WasmEdge_String with the buffer and its length.
WasmEdge_StringCreateByCString⚠
Creation of the WasmEdge_String with the C string.
WasmEdge_StringDelete⚠
Deletion of the WasmEdge_String.
WasmEdge_StringIsEqual⚠
Compare the two WasmEdge_String objects.
WasmEdge_StringWrap⚠
Create a WasmEdge_String that wraps the buffer.
WasmEdge_TableInstanceCreate⚠
Creation of the WasmEdge_TableInstanceContext.
WasmEdge_TableInstanceCreateWithInit⚠
Creation of the WasmEdge_TableInstanceContext with the default initial value.
WasmEdge_TableInstanceDelete⚠
Deletion of the WasmEdge_TableInstanceContext.
WasmEdge_TableInstanceGetData⚠
Get the reference value in a table instance.
WasmEdge_TableInstanceGetSize⚠
Get the size of a table instance.
WasmEdge_TableInstanceGetTableType⚠
Get the table type context from a table instance.
WasmEdge_TableInstanceGrow⚠
Grow a table instance with a size.
WasmEdge_TableInstanceSetData⚠
Set the reference value in a table instance.
WasmEdge_TableTypeCreate⚠
Creation of the WasmEdge_TableTypeContext.
WasmEdge_TableTypeDelete⚠
Deletion of the WasmEdge_TableTypeContext.
WasmEdge_TableTypeGetLimit⚠
Get the limit context from a table type.
WasmEdge_TableTypeGetRefType⚠
Get the reference type from a table type.
WasmEdge_TagInstanceGetTagType⚠
Get the tag type context from a tag instance.
WasmEdge_TagTypeGetFunctionType⚠
Get the function type from a tag type.
WasmEdge_VMAsyncExecute⚠
Asynchronously invoke a WASM function by name.
WasmEdge_VMAsyncExecuteRegistered⚠
Asynchronously invoke a WASM function by its module name and function name.
WasmEdge_VMAsyncRunWasmFromASTModule⚠
Instantiate the WASM module from a WasmEdge AST Module and asynchronously invoke a function by name.
WasmEdge_VMAsyncRunWasmFromBuffer⚠
Instantiate the WASM module from a buffer and asynchronously invoke a function by name.
WasmEdge_VMAsyncRunWasmFromBytes⚠
Instantiate the WASM module from a WasmEdge_Bytes and asynchronously invoke a function by name.
WasmEdge_VMAsyncRunWasmFromFile⚠
Instantiate the WASM module from a WASM file and asynchronously invoke a function by name.
WasmEdge_VMCleanup⚠
Reset of WasmEdge_VMContext.
WasmEdge_VMCreate⚠
Creation of the WasmEdge_VMContext.
WasmEdge_VMDelete⚠
Deletion of the WasmEdge_VMContext.
WasmEdge_VMExecute⚠
Invoke a WASM function by name.
WasmEdge_VMExecuteRegistered⚠
Invoke a WASM function by its module name and function name.
WasmEdge_VMForceDeleteRegisteredModule⚠
Forcibly delete a registered module from the VM context.
WasmEdge_VMGetActiveModule⚠
Get the current instantiated module in the VM.
WasmEdge_VMGetExecutorContext⚠
Get the executor context used in the WasmEdge_VMContext.
WasmEdge_VMGetFunctionList⚠
Get the exported function list.
WasmEdge_VMGetFunctionListLength⚠
Get the length of exported function list.
WasmEdge_VMGetFunctionType⚠
Get the function type by function name.
WasmEdge_VMGetFunctionTypeRegistered⚠
Get the function type by function name.
WasmEdge_VMGetImportModuleContext⚠
Get the module instance corresponding to the WasmEdge_HostRegistration settings.
WasmEdge_VMGetLoaderContext⚠
Get the loader context used in the WasmEdge_VMContext.
WasmEdge_VMGetRegisteredModule⚠
Get the registered module in the VM by module name.
WasmEdge_VMGetStatisticsContext⚠
Get the statistics context used in the WasmEdge_VMContext.
WasmEdge_VMGetStoreContext⚠
Get the store context used in the WasmEdge_VMContext.
WasmEdge_VMGetValidatorContext⚠
Get the validator context used in the WasmEdge_VMContext.
WasmEdge_VMInstantiate⚠
Instantiate the validated WASM module in the VM context.
WasmEdge_VMListRegisteredModule⚠
List the registered module names in the WasmEdge_VMContext.
WasmEdge_VMListRegisteredModuleLength⚠
Get the length of registered module list in the WasmEdge_VMContext.
WasmEdge_VMLoadWasmFromASTModule⚠
Load the WASM module from loaded WasmEdge AST Module.
WasmEdge_VMLoadWasmFromBuffer⚠
Load the WASM module from a buffer.
WasmEdge_VMLoadWasmFromBytes⚠
Load the WASM module from a WasmEdge_Bytes.
WasmEdge_VMLoadWasmFromFile⚠
Load the WASM module from a WASM file.
WasmEdge_VMRegisterModuleFromASTModule⚠
Instantiate and register an AST Module as a named module instance in the VM.
WasmEdge_VMRegisterModuleFromBuffer⚠
Register and instantiate WASM into the store in the VM from a buffer.
WasmEdge_VMRegisterModuleFromBytes⚠
Register and instantiate WASM into the store in the VM from a WasmEdge_Bytes.
WasmEdge_VMRegisterModuleFromFile⚠
Register and instantiate WASM into the store in the VM from a WASM file.
WasmEdge_VMRegisterModuleFromImport⚠
Register a module instance in the store in the VM by exporting its module name.
WasmEdge_VMRegisterModuleFromImportWithAlias⚠
Register a module instance into the VM under the given alias name.
WasmEdge_VMRunWasmFromASTModule⚠
Instantiate the WASM module from a WasmEdge AST Module and invoke a function by name.
WasmEdge_VMRunWasmFromBuffer⚠
Instantiate the WASM module from a buffer and invoke a function by name.
WasmEdge_VMRunWasmFromBytes⚠
Instantiate the WASM module from a WasmEdge_Bytes and invoke a function by name.
WasmEdge_VMRunWasmFromFile⚠
Instantiate the WASM module from a WASM file and invoke a function by name.
WasmEdge_VMValidate⚠
Validate the WASM module loaded into the VM context.
WasmEdge_ValTypeGenExternRef⚠
Generate the ExternRef WASM value type.
WasmEdge_ValTypeGenF32⚠
Generate the F32 WASM value type.
WasmEdge_ValTypeGenF64⚠
Generate the F64 WASM value type.
WasmEdge_ValTypeGenFuncRef⚠
Generate the FuncRef WASM value type.
WasmEdge_ValTypeGenI32⚠
Generate the I32 WASM value type.
WasmEdge_ValTypeGenI64⚠
Generate the I64 WASM value type.
WasmEdge_ValTypeGenV128⚠
Generate the V128 WASM value type.
WasmEdge_ValTypeIsEqual⚠
Compare the two WasmEdge_ValType objects.
WasmEdge_ValTypeIsExternRef⚠
Check whether the WASM value type is an ExternRef or not.
WasmEdge_ValTypeIsF32⚠
Check whether the WASM value type is an F32 or not.
WasmEdge_ValTypeIsF64⚠
Check whether the WASM value type is an F64 or not.
WasmEdge_ValTypeIsFuncRef⚠
Check whether the WASM value type is a FuncRef or not.
WasmEdge_ValTypeIsI32⚠
Check whether the WASM value type is an I32 or not.
WasmEdge_ValTypeIsI64⚠
Check whether the WASM value type is an I64 or not.
WasmEdge_ValTypeIsRef⚠
Check whether the WASM value type is a Ref (includes nullable and non-nullable) or not.
WasmEdge_ValTypeIsRefNull⚠
Check whether the WASM value type is a nullable Ref or not.
WasmEdge_ValTypeIsV128⚠
Check whether the WASM value type is a V128 or not.
WasmEdge_ValidatorCreate⚠
Creation of the WasmEdge_ValidatorContext.
WasmEdge_ValidatorDelete⚠
Deletion of the WasmEdge_ValidatorContext.
WasmEdge_ValidatorValidate⚠
Validate the WasmEdge AST Module.
WasmEdge_ValueGenExternRef⚠
Generate the external reference WASM value.
WasmEdge_ValueGenF32⚠
Generate the F32 WASM value.
WasmEdge_ValueGenF64⚠
Generate the F64 WASM value.
WasmEdge_ValueGenFuncRef⚠
Generate the function reference WASM value.
WasmEdge_ValueGenI32⚠
Generate the I32 WASM value.
WasmEdge_ValueGenI64⚠
Generate the I64 WASM value.
WasmEdge_ValueGenV128⚠
Generate the V128 WASM value.
WasmEdge_ValueGetExternRef⚠
Retrieve the external reference from the WASM value.
WasmEdge_ValueGetF32⚠
Retrieve the F32 value from the WASM value.
WasmEdge_ValueGetF64⚠
Retrieve the F64 value from the WASM value.
WasmEdge_ValueGetFuncRef⚠
Retrieve the function instance context from the WASM value.
WasmEdge_ValueGetI32⚠
Retrieve the I32 value from the WASM value.
WasmEdge_ValueGetI64⚠
Retrieve the I64 value from the WASM value.
WasmEdge_ValueGetV128⚠
Retrieve the V128 value from the WASM value.
WasmEdge_ValueIsNullRef⚠
Check whether the WASM value is a null reference or not.
WasmEdge_VersionGet⚠
Get the version string of the WasmEdge C API.
WasmEdge_VersionGetMajor⚠
Get the major version value of the WasmEdge C API.
WasmEdge_VersionGetMinor⚠
Get the minor version value of the WasmEdge C API.
WasmEdge_VersionGetPatch⚠
Get the patch version value of the WasmEdge C API.

Type Aliases§

WasmEdge_CompilerOptimizationLevel
AOT compiler optimization level C enumeration.
WasmEdge_CompilerOutputFormat
AOT compiler output binary format C enumeration.
WasmEdge_ComponentTypeCode
Component Model Type code C enumeration.
WasmEdge_ErrCategory
Error category C enumeration.
WasmEdge_ErrCode
Error code C enumeration.
WasmEdge_ExternalType
WASM External type C enumeration.
WasmEdge_HostFunc_t
WasmEdge_HostRegistration
Host Module Registration C enumeration.
WasmEdge_LogCallback_t
WasmEdge_LogLevel
WasmEdge_Mutability
WASM Mutability C enumeration.
WasmEdge_ProgramOptionType
Type of option value.
WasmEdge_Proposal
WASM Proposal C enumeration.
WasmEdge_RunMode
Run mode C enumeration. Selects the engine used to execute a WebAssembly module: interpreter (default), JIT, or AOT.
WasmEdge_Standard
WASM Standard C enumeration.
WasmEdge_TypeCode
WASM Type code C enumeration.
WasmEdge_WrapFunc_t
__time_t
int128_t
time_t
uint128_t