Function wasmedge_sys::ffi::WasmEdge_ExportTypeGetMemoryType
source · pub unsafe extern "C" fn WasmEdge_ExportTypeGetMemoryType(
ASTCxt: *const WasmEdge_ASTModuleContext,
Cxt: *const WasmEdge_ExportTypeContext
) -> *const WasmEdge_MemoryTypeContext
Expand description
Get the external value (which is memory type) from an export type.
The export type context should be the one queried from the AST module
context, or this function will cause unexpected error.
The memory type context links to the memory type in the export type context
and the AST module context. The caller should NOT call the
WasmEdge_MemoryTypeDelete
.
\param ASTCxt the WasmEdge_ASTModuleContext.
\param Cxt the WasmEdge_ExportTypeContext which queried from the ASTCxt
.
\returns the memory type. NULL if failed or the external type of the export
type is not WasmEdge_ExternalType_Memory
.