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

Function WasmEdge_FunctionInstanceGetData

lib/api/wasmedge.cpp:2717–2724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715}
2716
2717WASMEDGE_CAPI_EXPORT extern const void *WasmEdge_FunctionInstanceGetData(
2718 const WasmEdge_FunctionInstanceContext *Cxt) noexcept {
2719 if (Cxt) {
2720 return reinterpret_cast<CAPIHostFunc *>(&fromFuncCxt(Cxt)->getHostFunc())
2721 ->getData();
2722 }
2723 return nullptr;
2724}
2725
2726WASMEDGE_CAPI_EXPORT void WasmEdge_FunctionInstanceDelete(
2727 WasmEdge_FunctionInstanceContext *Cxt) noexcept {

Callers

nothing calls this directly

Calls 1

getDataMethod · 0.45

Tested by

no test coverage detected