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