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

Method addMemory

lib/validator/formchecker.cpp:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void FormChecker::addMemory(const AST::MemoryType &Mem) {
113 Mems.push_back(convAddrTypeToTypeCode(Mem.getLimit().getAddrType()));
114}
115
116void FormChecker::addGlobal(const AST::GlobalType &Glob, const bool IsImport) {
117 // The global type is confirmed in the loading phase.

Callers 2

validateMethod · 0.45
instantiateMethod · 0.45

Calls 2

convAddrTypeToTypeCodeFunction · 0.85
getAddrTypeMethod · 0.80

Tested by

no test coverage detected