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

Function retrieveFuncRef

include/common/types.h:691–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689// >>>>>>>> Functions to retrieve reference inners >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
690
691inline const Runtime::Instance::FunctionInstance *
692retrieveFuncRef(const RefVariant &Val) {
693 if (!Val.getType().isFuncRefType()) {
694 return nullptr;
695 }
696 return Val.getPtr<Runtime::Instance::FunctionInstance>();
697}
698
699template <typename T> inline T &retrieveExternRef(const RefVariant &Val) {
700 return *Val.getPtr<T>();

Callers 7

runCallRefOpMethod · 0.85
runCallIndirectOpMethod · 0.85
proxyCallIndirectMethod · 0.85
proxyCallRefMethod · 0.85
proxyRefGetFuncSymbolMethod · 0.85
WasmEdge_ValueGetFuncRefFunction · 0.85

Calls 2

isFuncRefTypeMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected