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

Method addComponent

include/validator/component_context.h:232–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 // ==========================================================================
231
232 uint32_t addComponent(const AST::Component::Component &C) noexcept {
233 auto &V = getCurrentContext().Components;
234 uint32_t Idx = static_cast<uint32_t>(V.size());
235 V.push_back(&C);
236 return Idx;
237 }
238
239 uint32_t addComponent() noexcept {
240 auto &V = getCurrentContext().Components;

Callers 2

validateMethod · 0.45
instantiateMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected