| 25 | WasmEdge::Configure Conf; |
| 26 | WasmEdge::Loader::Loader Ldr(Conf); |
| 27 | std::vector<uint8_t> prefixedVec(const std::vector<uint8_t> &Vec) { |
| 28 | std::vector<uint8_t> PrefixVec = { |
| 29 | 0x00U, 0x61U, 0x73U, 0x6DU, // Magic |
| 30 | 0x01U, 0x00U, 0x00U, 0x00U // Version |
| 31 | }; |
| 32 | PrefixVec.reserve(PrefixVec.size() + Vec.size()); |
| 33 | PrefixVec.insert(PrefixVec.end(), Vec.begin(), Vec.end()); |
| 34 | return PrefixVec; |
| 35 | } |
| 36 | |
| 37 | TEST(TypeTest, LoadFunctionType) { |
| 38 | std::vector<uint8_t> Vec; |