Local copies of the `wasmedge.cpp` helpers, kept here to stay self-contained.
| 28 | |
| 29 | // Local copies of the `wasmedge.cpp` helpers, kept here to stay self-contained. |
| 30 | inline ValType genValType(const WasmEdge_ValType &T) noexcept { |
| 31 | std::array<uint8_t, 8> R; |
| 32 | std::copy_n(T.Data, 8, R.begin()); |
| 33 | return ValType(R); |
| 34 | } |
| 35 | inline auto *toTabTypeCxt(AST::TableType *Cxt) noexcept { |
| 36 | return reinterpret_cast<WasmEdge_TableTypeContext *>(Cxt); |
| 37 | } |
no test coverage detected