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

Function convToValVec

test/api/helper.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89std::vector<std::pair<ValVariant, ValType>>
90convToValVec(const std::vector<WasmEdge_Value> &CVals) {
91 std::vector<std::pair<ValVariant, ValType>> Vals(CVals.size());
92 std::transform(CVals.cbegin(), CVals.cend(), Vals.begin(),
93 [](const WasmEdge_Value &Val) { return convToVal(Val); });
94 return Vals;
95}
96
97std::vector<WasmEdge_Value> convFromValVec(const std::vector<ValVariant> &Vals,
98 const std::vector<ValType> &Types) {

Callers 3

TEST_PFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85

Calls 3

convToValFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by 3

TEST_PFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68