| 126 | 0x01, 0x04, 0x01, 0x00, 0x01, 0x30, 0x04, 0x04, 0x01, 0x00, 0x01, 0x30}; |
| 127 | |
| 128 | void HexToFile(cxx20::span<const uint8_t> Wasm, const char *Path) { |
| 129 | std::ofstream TFile(std::filesystem::u8path(Path), std::ios_base::binary); |
| 130 | TFile.write(reinterpret_cast<const char *>(Wasm.data()), |
| 131 | static_cast<std::streamsize>(Wasm.size())); |
| 132 | TFile.close(); |
| 133 | } |
| 134 | |
| 135 | // The following are the functions and class definitions passed as references. |
| 136 |