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

Method addCoreInstance

include/validator/component_context.h:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 // ==========================================================================
169
170 uint32_t addCoreInstance() noexcept {
171 auto &V = getCurrentContext().CoreInstances;
172 uint32_t Idx = static_cast<uint32_t>(V.size());
173 V.emplace_back();
174 return Idx;
175 }
176
177 const std::unordered_map<std::string, ExternalType> &
178 getCoreInstance(uint32_t Idx) const noexcept {

Callers 1

validateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected