MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_ImportTypeGetMemoryType

Function WasmEdge_ImportTypeGetMemoryType

lib/api/wasmedge.cpp:1653–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1651}
1652
1653WASMEDGE_CAPI_EXPORT const WasmEdge_MemoryTypeContext *
1654WasmEdge_ImportTypeGetMemoryType(
1655 const WasmEdge_ASTModuleContext *ASTCxt,
1656 const WasmEdge_ImportTypeContext *Cxt) noexcept {
1657 if (ASTCxt && Cxt &&
1658 fromImpTypeCxt(Cxt)->getExternalType() ==
1659 WasmEdge::ExternalType::Memory) {
1660 return toMemTypeCxt(&fromImpTypeCxt(Cxt)->getExternalMemoryType());
1661 }
1662 return nullptr;
1663}
1664
1665WASMEDGE_CAPI_EXPORT const WasmEdge_TagTypeContext *
1666WasmEdge_ImportTypeGetTagType(const WasmEdge_ASTModuleContext *ASTCxt,

Callers 1

TESTFunction · 0.85

Calls 2

toMemTypeCxtFunction · 0.85
getExternalTypeMethod · 0.80

Tested by 1

TESTFunction · 0.68