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

Function WasmEdge_ValueGetFuncRef

lib/api/wasmedge.cpp:748–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748WASMEDGE_CAPI_EXPORT const WasmEdge_FunctionInstanceContext *
749WasmEdge_ValueGetFuncRef(const WasmEdge_Value Val) noexcept {
750 return toFuncCxt(WasmEdge::retrieveFuncRef(
751 WasmEdge::ValVariant::wrap<WasmEdge::RefVariant>(
752 to_WasmEdge_128_t<WasmEdge::uint128_t>(Val.Value))
753 .get<WasmEdge::RefVariant>()
754 .getPtr<WasmEdge::Runtime::Instance::FunctionInstance>()));
755}
756
757WASMEDGE_CAPI_EXPORT void *
758WasmEdge_ValueGetExternRef(const WasmEdge_Value Val) noexcept {

Callers 2

TESTFunction · 0.85
bpf_buffer_sampleMethod · 0.85

Calls 1

retrieveFuncRefFunction · 0.85

Tested by 1

TESTFunction · 0.68