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

Method getDefType

include/runtime/instance/composite.h:45–52  ·  view source on GitHub ↗

Getter for the value type in defined type form.

Source from the content-addressed store, hash-verified

43
44 /// Getter for the value type in defined type form.
45 ValType getDefType() const noexcept {
46 if (ModInst) {
47 return ValType(TypeCode::Ref, TypeIdx);
48 } else {
49 // nullptr `ModInst` case is only for host function instance case.
50 return ValType(TypeCode::Ref, TypeCode::FuncRef);
51 }
52 }
53
54protected:
55 friend class ModuleInstance;

Callers 11

validateCanonLiftMethod · 0.45
validateMethod · 0.45
containsBorrowMethod · 0.45
instantiateMethod · 0.45
runRefFuncOpMethod · 0.45
structNewMethod · 0.45
arrayNewMethod · 0.45
arrayNewDataMethod · 0.45
arrayNewElemMethod · 0.45
proxyRefFuncMethod · 0.45

Calls 1

ValTypeClass · 0.85

Tested by

no test coverage detected