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

Function WasmEdge_ASTModuleListImportsLength

lib/api/wasmedge.cpp:1252–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250// >>>>>>>> WasmEdge AST module functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1251
1252WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ASTModuleListImportsLength(
1253 const WasmEdge_ASTModuleContext *Cxt) noexcept {
1254 if (Cxt) {
1255 return static_cast<uint32_t>(
1256 fromASTModCxt(Cxt)->getImportSection().getContent().size());
1257 }
1258 return 0;
1259}
1260
1261WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ASTModuleListImports(
1262 const WasmEdge_ASTModuleContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
getContentMethod · 0.45

Tested by 1

TESTFunction · 0.68