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

Function WasmEdge_ImportTypeGetTableType

lib/api/wasmedge.cpp:1642–1651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1640}
1641
1642WASMEDGE_CAPI_EXPORT const WasmEdge_TableTypeContext *
1643WasmEdge_ImportTypeGetTableType(
1644 const WasmEdge_ASTModuleContext *ASTCxt,
1645 const WasmEdge_ImportTypeContext *Cxt) noexcept {
1646 if (ASTCxt && Cxt &&
1647 fromImpTypeCxt(Cxt)->getExternalType() == WasmEdge::ExternalType::Table) {
1648 return toTabTypeCxt(&fromImpTypeCxt(Cxt)->getExternalTableType());
1649 }
1650 return nullptr;
1651}
1652
1653WASMEDGE_CAPI_EXPORT const WasmEdge_MemoryTypeContext *
1654WasmEdge_ImportTypeGetMemoryType(

Callers 1

TESTFunction · 0.85

Calls 2

toTabTypeCxtFunction · 0.85
getExternalTypeMethod · 0.80

Tested by 1

TESTFunction · 0.68