| 2793 | } |
| 2794 | |
| 2795 | WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_TableInstanceGetData( |
| 2796 | const WasmEdge_TableInstanceContext *Cxt, WasmEdge_Value *Data, |
| 2797 | const uint64_t Offset) noexcept { |
| 2798 | return wrap([&]() { return fromTabCxt(Cxt)->getRefAddr(Offset); }, |
| 2799 | [&Data, &Cxt](auto &&Res) { |
| 2800 | *Data = genWasmEdge_Value( |
| 2801 | *Res, fromTabCxt(Cxt)->getTableType().getRefType()); |
| 2802 | }, |
| 2803 | Cxt, Data); |
| 2804 | } |
| 2805 | |
| 2806 | WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_TableInstanceSetData( |
| 2807 | WasmEdge_TableInstanceContext *Cxt, WasmEdge_Value Data, |
nothing calls this directly
no test coverage detected