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

Function genValType

lib/api/wasmedge_compat.cpp:30–34  ·  view source on GitHub ↗

Local copies of the `wasmedge.cpp` helpers, kept here to stay self-contained.

Source from the content-addressed store, hash-verified

28
29// Local copies of the `wasmedge.cpp` helpers, kept here to stay self-contained.
30inline 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}
35inline auto *toTabTypeCxt(AST::TableType *Cxt) noexcept {
36 return reinterpret_cast<WasmEdge_TableTypeContext *>(Cxt);
37}

Callers 1

Calls 2

ValTypeClass · 0.85
beginMethod · 0.45

Tested by

no test coverage detected