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

Method isResourceType

include/validator/component_context.h:299–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 bool isResourceType(uint32_t Idx) const noexcept {
300 const auto &Ctx = getCurrentContext();
301 return Ctx.ResourceTypes.find(Idx) != Ctx.ResourceTypes.end();
302 }
303
304 /// Returns true iff the type index is a resource defined in the current
305 /// scope (not imported, not an outer-alias). Required for canon

Callers 1

addTypeImplMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected