| 76 | 0x31}; |
| 77 | |
| 78 | void HexToFile(cxx20::span<const uint8_t> Wasm, const char *Path) { |
| 79 | std::ofstream TFile(std::filesystem::u8path(Path), std::ios_base::binary); |
| 80 | TFile.write(reinterpret_cast<const char *>(Wasm.data()), |
| 81 | static_cast<std::streamsize>(Wasm.size())); |
| 82 | TFile.close(); |
| 83 | } |
| 84 | |
| 85 | class HostPrintI32 : public WasmEdge::Runtime::HostFunction<HostPrintI32> { |
| 86 | public: |